Python, unpacked

Do not just run code.
Watch it think.

Paste a Python program and follow every variable, loop, and output as it happens. Everything runs privately inside your browser.

variables conditions loops functions lists dictionaries input errors references call stack data structures algorithms comparisons complexity
trace_preview.py LIVE
01total = 0 02for number in range(3): 03  total += number 04print(total)
TRACE // STEP 03

Python added number to total.

total0→1
number0→1