Course map
Stage 1: Foundation
Stage 2: Intermediate
Stage 3: Advanced
Stage 4: DSA in Python
Stage 5: Specialization

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
  1. Download the installer from python.org/downloads/windows.
  2. Run it. ✅ On the first screen, tick "Add python.exe to PATH".
  3. Check: open Command Prompt and type python --version (or py --version).
macOS
  1. Download the .pkg installer from python.org/downloads/macos and run it. (Homebrew users: brew install [email protected].)
  2. Check: open Terminal and type python3 --version.
Linux (Ubuntu)
  1. Python is often already installed. Check first: python3 --version.
  2. 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 py launcher.
  • macOS / Linux: use python3 instead of python.

🧪 Quick quiz — answer from memory, then check.

  1. Which Python version does this course need?
  2. On Windows, which box must you tick in the installer?
  3. Which command checks the version on macOS / Linux?
Show the answers
  1. 3.13 or newer.
  2. "Add python.exe to PATH" on the first screen.
  3. python3 --version

Done here? The practice set for Part 1 — 6 exercises with solutions — is on the part page.

Search the guide