Python Execution Lab

Step through the code the way the computer does
script.py
step 1 of 1

Comment lines are ignored by Python, so the highlight jumps straight over them. You type and or not in lower case; they are shown in capitals here so the logic stands out.

Try different starting values

Variables in memory

Output what the user sees

Keyboard: → next line, ← back, R restart, Space auto-run.