Lessons
The Python you learn on the trail
Every scroll, puzzle and wizard question from the game, one stage per page. Read them before you play, or come back after a stage to review. All the code is plain Python 3, so you can paste any snippet into a Python prompt and run it.
- Stage 1 · Amber Hollow Lists & Indexing Counting from Zero, Counting Backwards, The Slice Spell, Lists Can Change
- Stage 2 · Cinder Span Dictionaries & Hashing Keys and Values, The Hashing Rune, One Key, One Value, Keys Must Not Change, Asking Politely
- Stage 3 · Kiln Mouth Loops & range The Loop Rune, Start, Stop, Step, Gathering Embers, Loops That Wait
- Stage 4 · Smelter's Fork Booleans & Conditions Yes or No, and, or, not, The Fork, Empty Means False, Chains & Remainders
- Stage 5 · Bellows Bridge Functions & return Naming a Spell, Handing Back, Nothing Returned, Default Arguments, Inside Stays Inside
- Stage 6 · Crucible Crown Comprehensions Lists in One Line, The Sieve, Words In, Words Out, Dicts Too, Still a List