Programming
Python Variable Tracker — Track State Changes
Code
Input for input() — one line per call
Runs real Python 3.11 (Pyodide) in your browser. Ctrl+Enter runs; after running, use ← and → to step.
Step through
Press Run to execute the code. The first run downloads the Python runtime (about 10 MB, once per visit).
Programs that run longer are stopped, so an infinite loop cannot freeze the page.
How to use this tool
- 1Paste Python code or pick an example.
- 2Press Run to execute it with real Python in your browser.
- 3Pick a variable to see its complete history and, for numbers, a chart.
- 4Click any change to jump to that moment in the run.
Frequently asked questions
Yes, separately for each call — for example factorial() call 3 ▸ n — so recursive calls do not mix their values.
Any time the value’s representation changes: assigning a new value, or mutating a list, dict or object in place.
No. The tool runs real Python 3.11 (Pyodide, Python compiled to WebAssembly) inside your browser. The first run downloads the runtime (about 10 MB) once per visit; your code never leaves your device.
Related tools
Python Variable Trace Table Generator
Generate a trace table automatically: one row per executed line, every variable after the line, and its output.
Python Line-by-Line Executor — Step Execution
Run Python one line at a time: see the line about to run, output as it is printed, changed variables and line counts.
Python Stack Frame Visualizer — Call Stack View
See the Python call stack as code runs: frames with local variables, calls and returns, and stack depth over time.