



Read a Python traceback across two complete files, identify the failing operation and explain whether a repair meets the original requirement. Ages 14–16; functions, return values, selection, lists and simple imports should already be understood.
Four investigations cover NameError, TypeError, IndexError and ZeroDivisionError. Each has complete files, helper contracts, a captured default traceback, a tempting change that stops the crash, three explanation questions and full worked answers. A helper can already have returned without remaining on the traceback; a valid empty result is not automatically an upstream bug.
Included:
• Complete 21-page A4 and US Letter casebooks: guide, four cases, twelve questions, worked repairs, three closing claims, all recorded outcomes, sources and full font terms.
• A 45-file classroom-companion ZIP: the unchanged offline casebook/frame explorer and 24 Python files; a response notebook; whole learner and teacher DOCX/ODT sources; original PDFs; entry, adaptation guide, fonts and terms. Unzip the whole folder first.
The notebook repeats the 15 prompts with 45 first-explanation, evidence-note and revision fields. Worked explanations support human comparison; there is no marking. JavaScript enables typing, explicit work-file downloads/imports and entered-response printing. Import previews every replacement value before Apply; Cancel keeps current writing. No automatic save, account, tracking or publisher collection. Use anonymous or fictional entries. Read-only questions and models remain without JavaScript. A notebook print does not repeat the source files; open each linked whole case beside it.
Both editable roles have native text, numbered source, tables and response areas. The learner role retains the guide and hints but omits worked-answer sections; the teacher role includes them. These copies can reflow. Actual edit/save/reopen checks used LibreOffice Writer on Linux; other editor layouts may differ. Edits do not synchronize with other formats, Python files or captured records.
Paper works without an interpreter. The explorer selects 36 fixed Python 3.14.4 process records and highlights real frames in whole source files. It does not execute Python or assess edits. An existing Python 3 installation can run the supplied pairs without packages or a network; tracebacks can differ by version. All formats, response routes and inputs repeat the same four cases, not extra activities.
The complete package contains answers; distribute the learner role first if withholding models. One preview intentionally shows a whole worked answer. Created with OpenAI Codex (AI). No exam-board alignment, classroom trial or measured learning effect is claimed.
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.