Understand · type · run · inspect

Python playground

Your editor, terminal and tests on this device. Files are saved in this browser; there are no shared rooms or remote runs.

← All lessons
● This browser · Python 3.14.2

Run or Trace executes the first owned example input. Run tests checks all supplied acceptance cases. The diagram slider shows real function variables and table/array values; browser versions are reported after the run. The downloadable lab adds deeper ownership and API probes.

main.py

Python · Ctrl/⌘ + Enter to run

Loading the code editor…

See each decision

Run with Trace to inspect real variables, arrays and table rows. A line snapshot shows values before that line executes; return snapshots show its final scope.

① Source② Real execution③ Variables and tables
Input prepared before a run · useful when interactive input is unavailable

Terminal this browser

Python and pytest run here. Try python main.py, pytest -q, trace main.py, check, ls or cat test_main.py. This terminal has no remote shell.

Ready for a local run

Each run starts a fresh Python session and virtual files from the editor. Stop resets execution, not your draft. Code and output are not uploaded. Network calls and extra package downloads are unavailable.

The first run downloads the runtime; later runs use the local runtime cache. Runtime & licences