Python code visualizer

Free online Python code visualizer: run your code step by step and see every variable, function call, list and object, with each line explained.

Opening the visualizer…

About the Python code visualizer

Type or paste a Python program, or pick an example, and press Run & visualize. StepVioz runs it in your browser with Pyodide (a full Python) and records every step; nothing is sent to a server.

Each step shows the line that ran, the call stack with every function's variables, lists, dictionaries and objects drawn as boxes with arrows, and the output so far. A sentence explains what happened, with the arithmetic worked out. input() reads lines from the input box.

See also