Step through Python

Try it · Python Block Course

Four short programs that surprise most beginners. Guess what each one prints, then step through it line by line and watch which names point to which objects.

Screenshot of the demo “Step through Python”.

The interactive demo needs JavaScript.

Part of the course Python Block Course →
Show QR code
https://new.owl-ml.com/teaching/demos/step-through-python/
All demos →