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

Choose Run tests (or pytest -q). Running this Python module alone defines tests without executing their assertions. Add the exact two-year eligibility boundary.

test_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