The Python trail · Confident readers & curious tinkerersLittle lines.
Little lines.
Real superpowers.
Learn Python by making things happen. Every stop has an idea to learn, code to try, and a tiny challenge to make it yours.
10 hands-on lessons5–12 minutes eachRuns in your browser
Want to see the ideas first? Try programming with blocks: variables, decisions, loops, and collections that you can snap together. You can export a block program to Python when you’re ready.
01Try it02Try it03Try it04Try it05Try it06Try it07Try it08Try it09Try it10Try it
Hello, little universe!
Your first program · 5 min
A backpack for your ideas
Variables & strings · 7 min
The cookie calculator
Numbers & arithmetic · 7 min
Make your code listen
Input & interaction · 8 min
Choose your own adventure
If, else & decisions · 8 min
Again! Again! Again!
For loops & range · 8 min
The creature collection
Lists & indexing · 9 min
Invent your own superpower
Functions & return · 10 min
Build a character card
Dictionaries · 10 min
The secret number machine
Put it all together · 12 min
Already have an idea?
Open a blank canvas for your code. Tinker freely.