🐍 Python Activity Builder

Activity Metadata

Lowercase identifier, auto-generated from title

Instructions

UI Settings

Space reserved for saved student code in cmi.suspend_data. SCORM 1.2 specifies 4096; larger programs are also kept in this browser's IndexedDB.

Results

When enabled, tests stop at the first failure and students only see that other tests remain unpassed.
Shown only when every automated check passes.

Starter Code

The code students see in the editor when the activity opens (or resets).

Activity Files

Files seeded into the student's working directory before every run. Paths are relative (no leading /, no ..), max 50 files.

Packages

Python Runtime

Empty bundles the pinned runtime into every SCORM package (~12–15 MB). A non-empty absolute http(s) URL must serve the same pinned file set with CORS headers. Saved in this browser for next time.

Hints

Edit Hint

Select a hint to edit, or add a new one.

Test Cases

Edit Test

Select a test case to edit, or add a new one.

This runs the real student view so you can run code, check tests, request hints, and use the input dialog.

Export

JSON exports the activity config (works everywhere). SCORM export validates the config and every AST pattern first, then builds a Moodle-uploadable package — the Python runtime is bundled unless a Pyodide base URL is set on the Code tab.