Part 01 / Topic 2 of 7
Installing Python 3.13+
Download Python from python.org/downloads. Pick version 3.13 or newer.
Real-world example: Your laptop is new and you want to run your first Python file today.
Pick your OS and follow just that block:
Windows
- Download the installer from python.org/downloads/windows.
- Run it. ✅ On the first screen, tick "Add python.exe to PATH".
- Check: open Command Prompt and type
python --version(orpy --version).
macOS
- Download the
.pkginstaller from python.org/downloads/macos and run it. (Homebrew users:brew install [email protected].) - Check: open Terminal and type
python3 --version.
Linux (Ubuntu)
- Python is often already installed. Check first:
python3 --version. - If it is missing or old:
sudo apt install python3(or your distro's newer package / the deadsnakes PPA — see Using Python on Linux).
Open a terminal (Command Prompt / PowerShell / Terminal) and check:
$ python --version
Python 3.13.1
PATH tip: PATH is a list of folders where your computer looks for commands. If you see 'python' is not recognized (Windows) or command not found, Python is not on PATH.
- Windows: re-run the installer → Modify → tick "Add Python to environment variables". Or use the
pylauncher. - macOS / Linux: use
python3instead ofpython.
🧪 Quick quiz — answer from memory, then check.
- Which Python version does this course need?
- On Windows, which box must you tick in the installer?
- Which command checks the version on macOS / Linux?
Show the answers
- 3.13 or newer.
- "Add python.exe to PATH" on the first screen.
python3 --version
Done here? The practice set for Part 1 — 6 exercises with solutions — is on the part page.