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.
Choose Run tests (or pytest -q). Running this Python module alone defines tests without executing their assertions. Add a separate test that zero items cost zero.
test_main.py
Python · Ctrl/⌘ + Enter to runLoading 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