Episode 2 of 29

Installing Python 3

Step-by-step guide to installing Python 3 and setting up your development environment.

Before writing code, you need to install Python 3.

Download Python

Visit python.org/downloads and download the latest version. On Windows, check "Add Python to PATH".

Verify Installation

python --version
python3 --version

Your First Python Program

Create a file called app.py:

print("Hello, World!")
print("Welcome to Python 3!")

Run it: python app.py

Python REPL

Type python in terminal to enter the interactive REPL:

>>> 2 + 3
5
>>> "hello".upper()
'HELLO'