Code Quest games
Code Quest puzzles, games and quizzes
Play in your browser, with no sign-up. Scores stay on this device. Made to go with the book Code Quest with Python.
0 of 33 completed
Quizzes
Check what you know, one quest at a time.
Quiz: Computers and algorithms
Six questions on what programs are and why order matters.
Quests 1 to 4 · 6 questions
Quiz: Variables and data
Boxes with labels, text and numbers: test your Python basics.
Quest 5 · 6 questions
Quiz: Input and decisions
Ask questions, compare values and choose what happens next.
Quests 6 and 7 · 6 questions
Quiz: Loops
Repeat things without writing them again and again.
Quest 8 · 6 questions
Quiz: Random and functions
Roll dice with code and name a set of steps to reuse.
Quests 9 and 10 · 6 questions
Quiz: Drawing, games and using AI wisely
Turtle drawings, game loops and smart habits with AI helpers.
Quests 11 to 14 · 6 questions
Predict the output
Read the code, then choose what it prints.
Predict the output: print and variables
Read each program like a computer and say what appears on the screen.
Quests 4 and 5 · 5 questions
Predict the output: decisions
Follow the if, elif and else to see which branch runs.
Quest 7 · 5 questions
Predict the output: loops
Count carefully: how many times does the loop go round?
Quest 8 · 5 questions
Predict the output: functions and lists
Functions hide steps and lists hold many values. Can you follow both?
Quests 9 and 10 · 5 questions
Bug hunts
Find the mistake and pick the fix.
Bug hunt: spelling and punctuation
Python is picky about quotes, brackets and colons. Find the slip.
Quests 4 to 7 · 5 questions
Bug hunt: the program runs but is wrong
These programs run without an error message, yet they do the wrong thing.
Quests 5 to 7 · 5 questions
Bug hunt: loops that misbehave
Endless loops and off-by-one counts: spot them before they spot you.
Quest 8 · 5 questions
Bug hunt: functions and sneaky typos
A tiny typo can stop a whole program. Can you find it?
Quests 9 and 10 · 5 questions
Put the code in order
Rebuild the program by putting the lines in the right order.
Put the code in order: greetings
Rebuild short programs by tapping the lines in the right order.
Quests 5 and 6 · 2 puzzles
Put the code in order: decisions
The if comes first, then its block, then else.
Quest 7 · 2 puzzles
Put the code in order: loops
Set up first, loop next, show the answer last.
Quest 8 · 2 puzzles
Put the code in order: functions
Define first, call afterwards: a function must exist before you use it.
Quest 10 · 2 puzzles
Matching games
Pair each idea with its meaning.
Matching: big words made simple
Join each coding word to what it means.
Quests 1 to 10 · 6 items
Matching: symbols and what they do
Python is full of tiny symbols. Learn what each one does.
Quests 5 to 8 · 6 items
Matching: handy Python tools
Each tool has a job. Pair the tool with its job.
Quests 4 to 10 · 6 items
Sorting games
Drop each item into the right group.
Sorting: kinds of data
Is it text, a whole number, a decimal or True/False? Watch out for tricks!
Quest 5 · 8 items
Sorting: safe to try or ask an adult
Good coders are careful online. Sort each action.
Quests 3 and 14 · 8 items
Sorting: for loop or while loop?
Use for when you know how many times. Use while when you wait for something.
Quest 8 · 8 items
Turtle drawing
Build a program that draws the shape.
Turtle: first shapes
Choose the steps and how many times to repeat them to match the shape.
Quest 11 · 4 puzzles
Turtle: stars and stairs
Bigger turns make pointier shapes. Try the star!
Quest 11 · 4 puzzles
Turtle: more shapes to crack
Shapes with two different sides need two moves in each repeat.
Quests 11 and 12 · 4 puzzles
Offline activities
No computer needed. Try these away from the screen.
Be the robot: give exact instructions
One person is the robot and only follows instructions word for word. The other writes the algorithm.
Quests 1 to 3 · 15 minutes
Variable boxes
Turn cups or envelopes into variables and watch their values change.
Quest 5 · 15 minutes
The decision walk
Walk through an if, elif and else path made from paper signs on the floor.
Quest 7 · 10 minutes
The loop dance
Invent a short dance and use a loop to repeat it, then a while loop to stop it.
Quest 8 · 10 minutes
Turtle on paper
Draw shapes by following turtle commands with a pencil and a ruler.
Quest 11 · 20 minutes
Debug the recipe
Find the planted mistakes in a recipe the way you would find bugs in code.
Quest 15 · 15 minutes
