Python Installation
Before writing Python programs, you need to install Python on your computer.
Check Python
Open Terminal or Command Prompt and run:
python3 --version
You should see a Python version such as:
Python 3.x.x
Start Python
Run:
python3
Then try:
print("Hello Python")
Run a Python File
Create a file named hello.py:
print("Hello Python")
Run it with:
python3 hello.py
Important
On Windows, the command may be python instead of python3.