Python + VS Code (recommended)
A one-off install. After this you can code offline, save files locally, and run anything we cover in this course.
- Install Python
- Open python.org/downloads and click the big yellow Download Python 3.x button.
- Windows users — important: on the first installer screen, tick
Add python.exe to PATH, then click Install Now. - macOS users: open the downloaded
.pkgfile and follow the prompts. - To check it worked, open a terminal (Windows: Command Prompt; macOS: Terminal) and type
python --version. You should see a line likePython 3.12.4.
- Install Visual Studio Code (VS Code)
- Open code.visualstudio.com.
- Click the big blue download button — it picks the right version for your computer.
- Run the installer, then open VS Code from your Start Menu (Windows) or Applications (macOS).
- Add the Python extension to VS Code
- In VS Code, click the Extensions icon on the left sidebar (four squares — or press
Ctrl + Shift + Xon Windows /⌘ + Shift + Xon macOS). - Search for Python.
- Install the one published by Microsoft (it has a small blue tick and millions of downloads).
- In VS Code, click the Extensions icon on the left sidebar (four squares — or press
- Try it
- Make a folder somewhere called
python-lessons. - In VS Code: File → Open Folder, then choose that folder.
- File → New File, save it as
hello.py. - Type
print("Hello!")and click the green ▶ Run button (top-right corner). - You should see
Hello!in the terminal panel at the bottom.
- Make a folder somewhere called