Product Dojo · Python

The Python Dojo

Twenty-four stages from your first print() to a finished tool. Read the lesson, write the code, pass the checks.

Nothing to install

Real Python, running in this tab

Every editor on the site runs actual CPython, compiled to WebAssembly and loaded once into your browser. Not a simulation, not a subset — the same interpreter you would install on your laptop, including the tracebacks.

Nothing you write leaves your browser. Nothing can be broken. And when you inevitably write a loop that never ends, it is stopped after ten seconds and you carry on.

How a Python stage is trained

Every stage has the same five parts. You read, you type, you get checked — and the boss round is code, not a quiz.

Learn

Four short lessons, in plain language, with worked examples and a quick check at the end of each. No jargon left undefined and no prior programming assumed.

Lab

Four exercises you type into a real editor. Press Run and the checks tell you straight away what worked and what did not — a failed run costs nothing, which is the whole point.

Bonus

Name the concept from its clues. The fewer clues you need, the more points.

Boss

One graded assignment with visible and hidden checks, so it is cleared by solving the problem rather than by matching the examples.

Intel

The whole stage condensed onto one screen — the syntax, the traps and the error messages — for when you are half-way through something else.

Four worlds

World 1

First Steps

6 stages

Can write, read and run a small Python program: values, names, types, text and the arithmetic that connects them.

Clear it all and you earn Python Initiate

World 2

Logic & Collections

6 stages · in the works

Can make a program decide, repeat and remember: conditions, loops, and the four core collections Python leans on.

Clear it all and you earn Flow Controller

World 3

Building Blocks

6 stages · in the works

Can break a program into reusable functions, handle its failures on purpose, and pull in code written by other people.

Clear it all and you earn Function Smith

World 4

Real Python

6 stages · in the works

Can model a problem with classes and data structures, write the modern idioms, and ship a small tool end to end.

Clear it all and you earn Python Artisan

The full curriculum

Twenty-four stages across four worlds, in order — each one leans on the one before it. World 1 is open now; the rest are written and released world by world.

2. Logic & Collections

  • 2-01Making Decisions
  • 2-02for Loops
  • 2-03while Loops
  • 2-04Lists
  • 2-05Dictionaries
  • 2-06Tuples & Sets

3. Building Blocks

  • 3-01Functions
  • 3-02Arguments & Scope
  • 3-03Comprehensions
  • 3-04Errors & Exceptions
  • 3-05Modules & the Standard Library
  • 3-06Reading & Writing Files

4. Real Python

  • 4-01Classes & Objects
  • 4-02Dataclasses & Type Hints
  • 4-03Iterators & Generators
  • 4-04Modern Python
  • 4-05Working with Data
  • 4-06Capstone: Build a Tool

No prior programming experience needed

Write your first program

Free to join. Your rank and cleared stages stay with you across every device, and count towards the same belt as every other dojo. Clear all 24 and you earn the Python Practitioner certificate.

Enter the Python dojo

Here for product management instead? Try the Product dojo.