Set up Python on Windows

Install Python 3 for Windows. Use py to launch the interpreter if the Windows launcher or install manager is available. You can also use python if it resolves to your Python 3 installation. Follow the official installation guide, then verify the installation with py --version. The screenshots below illustrate an older Windows installation. Use the paths and versions for your machine.

A simple example

Run a first program

  1. Start with A source file
  2. Do this Run the program
  3. Result Ready
Print a single word to check that your tools can run a program.
lesson.py
print("Ready")
Output
Ready
On the laptop: New terminal. Version check: py --version. Look for: A version number.
Get a school laptop ready for class

A coding club shares its Windows laptops between classes. Open a fresh terminal and run py --version. A version line tells the next student that the shell can find the Python tool.