Legends of Pythos: Learn Python by running it
Learn Python by running it. Short lessons, trials that run right in your browser, and tests that judge every one the moment you press run.
Runs in your browser. Nothing to install, no account needed to start.
- Lessons
- 75
- Trials
- 213
- Tracks
- 6
How the trials run
Four steps, once for every lesson.
Read the passage
A few paragraphs, a worked example, and the mistake most people make right here.
Write the code
You get a task and an editor. Python runs in the page itself, so there is nothing to install and nowhere to hide.
Face the tests
Assertions run against what you wrote. You see which held, and a hint for any that broke.
Take the XP
A won trial earns XP, keeps your streak burning and unseals the next lesson. Later you face it again from memory, so it sticks.
The Six Tracks
75 lessons and 213 exercises. Each lesson unseals the one after it.
- IYour first program
- IIWhen Python complains
- IIIStoring values in variables
- …10 more, each sealed until the one before it falls
Working with Data
Lists, dicts, sets and comprehensions — shaping data the way Python wants you to.
Opens after Python BasicsTrack 3Writing Real Programs
Arguments, errors, the standard library and files. Code that survives contact with reality.
Opens after Working with DataTrack 4Objects and Classes
Bundling data with behaviour, and the parts of OOP that actually earn their keep.
Opens after Writing Real ProgramsTrack 5Pythonic Python
Generators, decorators and the idioms that separate working code from good code.
Opens after Objects and ClassesTrack 6The Standard Library
Formatting, files, regular expressions, exact numbers and logging: the batteries Python ships with.
Opens after Pythonic Python