Python, Level by Level
Learn Python by running a café's till
Short quests you play in your browser: write real Python, press Check, earn XP. Each level ends with a challenge that opens the next.
Level 1: First day
print, variables, numbers, strings, input and reading errors
- Quest 1Next
First Day at Bean There
5 steps · about 25 minprint(f"Today's special: {special}, £{price:.2f}") - Quest 2 After quest 1
The Receipt
5 steps · about 30 minf"£{total // 100}.{total % 100:02d}" - Quest 3 After quest 2
Ask the Customer
5 steps · about 25 minflat_whites = int(input("Flat whites: ")) - Quest 4 After quest 3
Read the Error
5 steps · about 25 minNameError: name 'pirce' is not defined
Opening Morning
Doors open at 8:00. Your till prints an exact receipt for every customer, including the ones you can't see.
XP and ranks
- Apprentice 0
- Junior developer 800
- Developer 2,400
- Senior developer 5,400
- Lead developer 9,000
Questions about the course
No. Python runs in your browser, in the lab's editor and terminal, so there is nothing to install or set up. It works on a phone too.
No. Level 1 starts from your first print() and explains each idea when it first comes up.
Level 1 is free: its quests need no account, and its boss needs a free one. Levels 2 and 3 are part of Pro, with every lab, course and practice test on Preporato.
A quest takes 25 to 30 minutes and a boss about 40, so Levels 1 to 3 take about 7 hours. Your progress is saved after every step.
Levels 4 to 10 are on the way: collections, functions, testing, files and data, objects, Python's own tools, and finally data and AI. Your XP and rank carry over.