Start Python Missions
Choose your level and preferred type of challenge.
Follow the execution of real Python examples, then test yourself with original programming questions for Foundations, GCSE and A-level.
How it works: These are curated, deterministic traces and teacher-authored quiz answers—not a Python interpreter or AI marking service. All practice is free and runs in your browser.

Need more variety after code tracing? Practise progressive original debugging and output-prediction missions with a hint system.
Choose your level and preferred type of challenge.
Choose an example and step through the execution to see how variables, conditions and data structures change.
Original Computer Science practice questions with explanations. Pick a level and activity type and receive immediate feedback.
Your latest quiz total is saved only in this browser. No student account or server storage is required.
12 introductory programming lessons with downloadable examples.
Start Foundations →Algorithms, searching, sorting, testing and programming projects.
Explore GCSE →Recursion, OOP, data structures, databases and algorithms.
Explore A-level →Begin by reading a short program without running it. Predict its output, then trace variable values line by line. When debugging, explain the underlying reason for the error before checking the solution. Choose Foundations for basic loops and values, GCSE for algorithms and A-level for recursion or data structures.
Python practice · next steps
For each example, predict the output before running it, trace the values, test your prediction, then explain any difference. This makes revision more useful than simply reading the correct answer.
Follow variables and loops through three worked examples, including an off-by-one pitfall and test questions.
Learn code tracing →Compare syntax, runtime and logic errors; reveal explanations only after trying the fix yourself.
Practise debugging →Attempt the separate free online practice set and use the hints only when you need them.
Open the practice lab →Improve your next answer
Before pressing Run or revealing an answer, create a small trace table with the line number, variable values and output. Predict the result and explain any change.
total = 0
for number in range(1, 4):
total = total + number
print(total)The loop processes 1, 2 and 3. Track total as 0 → 1 → 3 → 6. Remember: the stop value in range(1, 4) is not included.
Output: 6. Change the stop value to 5; the total becomes 10. Explain the additional iteration.
Make your tracing practice count
Use one row per loop iteration. Record the value after the assignment, not just at the start.
Ask what happens when a list is empty, a value equals the threshold or the loop runs once.
Write a complete sentence about why the output appears. Then change one input and predict again.
Continue with GCSE trace-table questions, pseudocode translation examples, or beginner coding projects.