Programming

Python Line-by-Line Executor — Step Execution

Run Python one line at a time in your browser. The line about to run is highlighted, the console shows output exactly when it is printed, the variables panel marks what each line changed, and you can step forwards and backwards through the whole run.
Real Python 3.11 in your browserNothing is uploaded

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

  1. 1Type or paste Python code, or pick an example (input() is supported: put the answers in the Input box).
  2. 2Press Run: the program runs with real Python 3.11 and every step is recorded.
  3. 3Step with Next and Back (or the ← → keys), or press Play.
  4. 4Watch the console, the variables and how many times each line has run.

Frequently asked questions

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.

Yes. Type the answers in the "Input for input()" box, one line per input() call, before you run the program.

The run is stopped after the step limit (2,000 by default) or six seconds, and you can still step through everything that happened before it stopped. The page never freezes.

Yes. Every step is recorded, so Back, the slider and the ← key move backwards through the run.