Python LabEducational Resource
Loading Python…
Welcome to Python Lab. Initializing Python runtime…

Run Tests to collect pytest results.

No trace recorded

Click Record Trace to inspect your program.

Recorded traces replay snapshots; they do not pause a live Python process.

LOCAL VARIABLES
PROGRAM OUTPUT SO FAR

Create a new file?

Your current files are saved locally. This will create another file in your project.

Projects on This Device

Each project saves separately in your browser. These are not cloud backups and will not automatically appear on another device. Export a ZIP to move or submit your work.

Python Templates

Simple examples · No completed assignment solutions

Try an example or tracing activity. Each template creates a new folder and keeps your other files unchanged.

Record a Python Trace

Enter any answers your program needs, one per line. Trace executes a temporary copy once, then lets you step through saved snapshots. It may still make external requests or have other side effects.