Wake Pip. Learn Python.
Write Python in your browser. Each mission brings a broken robot back to life. The first lesson is free and takes about a minute.
- Try the first drills
- No install
- Instant check
How it works
- 1
Read a short mission.
Each chapter teaches one idea, then a mission uses it in the game.
- 2
Write Python.
Your code stays in the browser. Nothing is uploaded to run it.
- 3
Watch Pip wake up.
Passed missions stay in the game you keep. Open it any time.
0 of 23 lessons completed
Chapter 0: First boot
Free: wake up Pip, a broken robot, with print().
Chapter 1: Variables and numbers
Free: store values and power up Pip's HUD.
Chapter 2: Strings
Free: work with text and name your robot.
Chapter 3: Conditionals
Free: make decisions and give Pip working legs.
Chapter 4: Loops
Pro: repeat work and light up Pip's map.
Chapter 5: Lists
Pro: keep many values together and fill Pip's inventory.
Chapter 5b: Tuples
Pro: store coordinates as pairs and drop map pins for Pip.
Chapter 6: Dictionaries
Pro: look things up by key and give the machines their lines.
Chapter 6b: Sets
Pro: keep unique scrap and let Pip craft a recipe.
Chapter 7: Functions
Pro: teach Pip to repair broken machines.
Chapter 7b: Generators
Pro: yield coordinates one at a time and send Pip on a patrol.
Chapter 8: While loops
Pro: repeat until something changes, and give Pip a battery that drains.
Chapter 9: Errors
Pro: handle bad input and fix Pip's glitchy sensors.
Chapter 10: Classes
Pro: bundle data and actions, and fight a glitch.
Chapter 10b: Inheritance
Pro: subclass Glitch with super() and fight a shielded boss.
Chapter 11: Modules, JSON and files
Pro: save the game, then download the game you built.
Data 1: Files and CSV
Pro: read the Data Mine's sensor log.
Data 2: Comprehensions
Pro: filter and build lists in one line, and find the hot spots.
Data 3: Sorting and lambda
Pro: rank the strongest readings.
Data 4: Counting and dates
Pro: Counter, defaultdict and dates, and a chart of the mine.
Data 5: Statistics
Pro: mean, median and a summary of the mine.
Radio 1: match
Pro: decode radio tokens with match and wake the mast.
Radio 2: Regular expressions
Pro: pull zone and code out of garbled transmissions.
Wake Pip. Learn Python.
Python DailyDrills is practice in the browser: you write real Python, press Check, and a piece of the game comes alive. Nothing to install. The first lesson is free and takes about a minute.
Questions people ask
Does my code leave the browser?
No. Python runs on your computer in the page. We never store or run your mission code on our servers.
Who is Pip?
A small repair robot that has washed up on the Scrap Isle with every system offline. Your first lines of Python give it a voice; later missions restore the rest.
What is the game I keep?
Each chapter ends with a mission. Passed missions stay in the game: the island, Pip, and the machines you repair. You can open it any time, and later download the game you built.
Is it really free?
The first 4 lessons are free to try, with no account and no credit card. Sign up free to continue; Pro unlocks the rest of the course.
See also the game, the guides and the Python reference.