How it works
Each mission gives you a goal and a code editor. Write Python, press Run, and watch it happen: Bolt drives round the grid, the LEDs light up, or your game starts. Step runs one line at a time and highlights it, and the Variables tab shows what your program is remembering at each moment. When it finishes, Code Quest checks your code against the mission, often on several different versions of the map, so it has to really work, not just work once.
- World 1: Boot Up (free). Commands, running in order, fixing bugs and comments.
- World 2: Loop Factory.
forloops,range()and loops inside loops. - World 3: Decision Maze.
if,else,while, and mazes that change every time you run. - World 4: Signal Station. Variables, maths, text, f-strings and
input(), including an Ohm's law calculator. - World 5: Function Forge. Writing your own functions with parameters and return values, tested like real code.
- World 6: Pixel Lab. Lists and loops on an 8×8 LED matrix: pixel art, bar charts and animation.
- World 7: Object Arena. Your first Pygame Zero programs: moving shapes, the keyboard, the mouse, dictionaries, classes and collisions.
- World 8: Arcade Finale. Build a complete game step by step, then make it your own and download it.
Each mission has up to three stars: one for finishing, one for doing it in no more than the target number of lines, and one for not using a hint. Stars, XP, badges and your daily streak are saved in this browser.
Is it real Python?
Yes. Code Quest runs a large part of Python 3 directly in your browser, with nothing to install. It was tested against the real Python 3.13 on hundreds of programs, including its error messages, so NameError, SyntaxError and the rest read the way they would on your own computer. What it leaves out (for example files, most of the standard library and generators) you won't need for any mission.
The arcade worlds use a faithful copy of the parts of Pygame Zero that beginners use most: draw() and update(), screen.draw, Rect, keyboard, clock and the mouse and keyboard events. It was checked against Pygame Zero 1.2.1 and pygame 2.6, so a game you finish here runs in Mu, Thonny or pgzrun on your own computer. Download it with the Download .py button. Bolt's commands and the LED matrix only exist inside Code Quest.
Tips
- Press Ctrl + Enter to run. Tab indents by 4 spaces and Shift + Tab takes them away.
- On a phone, use the buttons under the editor to type commands and symbols.
- Read the error message: it names the line and usually says what is wrong. Code Quest adds a plain-English explanation underneath.