Part 0 — Tools of the Trade¶
Set up Python, learn the command line, and keep your work safe with Git and GitHub. GCSE students need 0.1–0.4 and 0.7; A Level students need all of Part 0.
Chapter 0.1How to use this bookPathways for GCSE, A Level and complete beginners · What the coloured panels mean · Specification tags and 'Build it' boxes
Chapter 0.2Installing Python and an editorInstalling Python from python.org · Thonny, VS Code and IDLE compared · Running a first program
Chapter 0.3The command lineTerminal vs shell; reading the prompt · cd, dir / ls · Absolute and relative paths
Chapter 0.4Running Python from the command linepy (Windows) and python3 (macOS/Linux) · Running and stopping a script (Ctrl+C) · The Python prompt (REPL) vs the shell prompt
Chapter 0.5Installing Python from the command lineWindows: winget (package IDs to be verified) · macOS: Homebrew · Linux: the package manager
Chapter 0.6Packages, virtual environments and pygame-cepython -m pip · Creating and activating a venv · Installing pygame-ce
Chapter 0.7Git I: saving your work with version controlInstalling Git · init, status, add, commit, log, diff · Going back to an earlier version
Chapter 0.8Git II: GitHubGitHub accounts and private repositories · Signing in from the command line · clone, push, pull; branches, merging and conflicts; pull requests