Sandbox Studio

Python explainer

See Python think, one step at a time

  1. Pick a lesson, or type any Python on the left.
  2. Press Explain it. Python runs it once and remembers every step.
  3. Step through with → and ←, or Space to play. Click a line to jump to it.

Each step says what Python did: an if worked out to True or False and where it went next, the round of a loop, and which variables changed.

Lessons

Loops

Decisions

Operators

Lists

Functions