Runs in your browser
Real CPython compiled to WebAssembly. Your code never leaves your device, so it is fast, private and works on any laptop or phone.
Watch your code run line by line – variables, lists and the call stack.
Press Run to see your program's output here.
Step 0 of 0
Variables and function calls appear here.
➜ line that runs next · ➜ line that just ran · use ← → keys to step
Real CPython compiled to WebAssembly. Your code never leaves your device, so it is fast, private and works on any laptop or phone.
The visualiser replays your program line by line, drawing variables, lists, dictionaries, objects and the call stack.
Your program pauses at every input() and you type the answer in the console, like a real terminal – perfect for games, menus and exam programs.
Save & share gives you a short link for your teacher, friend or interviewer – no account needed.
New to Python? Follow the free Python tutorial (every example has a Run button), then test yourself with today's Daily Code Challenge.
Each step of your program: the line about to run, every variable in every function call (the call stack), lists and dictionaries drawn as boxes, return values and the output printed so far.
It records the whole run first, so you can move forwards and backwards freely with the slider or the arrow keys – ideal for understanding loops, recursion and references.
The visualiser records up to 800 steps. It is meant for short teaching programs; use the compiler for longer ones.
Yes. Every runnable example in the LearnFrenzy Python tutorial has a "Visualise" button that opens it here.