Install · Open · Run · Save
Get Python ready
Before building the game, set up the tool that reads and runs Python instructions.
First: what is Python?
Python is both a language and a program.
You will write instructions in the Python language. The Python program on your computer reads those instructions and carries them out. Your files will end in .py, so the first game file will be called week1.py.
Windows 10 or 11
- Open the official Python downloads page.
- Choose the current Python 3 download or Python Install Manager. Open the downloaded installer and choose Install.
- Open Command Prompt, type
pythonand press Enter. If Python asks to install the latest runtime, allow it. - Close Command Prompt. Open the Start menu and search for IDLE. Choose the IDLE entry for Python 3.
If the computer is school-managed, installation may need an administrator. Follow the school’s instructions instead of trying to bypass the restriction.
macOS
- Open the official Python downloads page and download the current macOS Python 3 installer.
- Open the downloaded
.pkgfile and follow the installation steps. - Open Applications, then the Python 3.x folder. Run Install Certificates.command once.
- In the same folder, open IDLE.
Do not delete or change Apple’s built-in Python. The python.org installer creates its own separate installation.
Chromebook or managed device
Stop here and ask the tutor or school which editor to use. Linux installation may be disabled, and changing device settings can break school rules. The course code works in any editor that runs ordinary Python 3.
Meet the editor
IDLE has two useful windows
The Shell shows >>> and runs one instruction immediately. It is useful for quick experiments. The Editor holds a complete program that you can save and run again.
For this project, use the Editor for game code.
>>> 2 + 3
5
>>> _Try one thing nowprint("NEON HEIST: ENDS EDITION")
print("Run loaded. Move smart.")Save a whole programYour first run
Prove the setup works
- Create a folderMake a folder called
neon-heistsomewhere easy to find. - Open an editorIn IDLE choose File → New File. A blank Editor window opens.
- Type one instructionType
print("Python is ready"). Type it yourself rather than pasting it. - Save itChoose File → Save As and save it as
setup_check.pyinside your folder. - Run itChoose Run → Run Module. The Shell should display
Python is ready. If F5 changes screen brightness, use the Run menu.
I have run a saved .py file and can find it again.