Installing Python
Before writing Python programs, Python needs to be installed on your computer.
Python is available for major operating systems such as Windows, macOS and Linux.
Download Python only from the official Python website.
Python Setup on Windows
The basic installation process is:
Visit the official Python website and download the appropriate installer.
Open the downloaded installer and follow the installation instructions.
Finish the installation process and wait for Python to be installed.
Verify Python Installation
After installation, you can check whether Python is available from the command line.
python --version
If Python is installed correctly, the command displays the installed Python version.
Choose a Code Editor
A code editor makes writing and managing Python programs easier.
VS Code
A popular code editor with Python extensions and development features.
IDLE
A simple development environment included with Python.
Run Your First Program
Create a file named
hello.py.
print("Hello, PyStep!")
Save the file and run it using your Python environment.
Quick Quiz
Test your understanding of this lesson.
1. Which command can be used to check the Python version?
Finished this lesson?