pdf, 111.38 KB
pdf, 111.38 KB
pdf, 110.92 KB
pdf, 110.92 KB
zip, 2.06 MB
zip, 2.06 MB

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.

Get this resource as part of a bundle and save up to 25%

A bundle is a package of resources grouped together to teach a particular topic, or a series of lessons, in one place.

Bundle

Python Debugging Bundle: Tracebacks and Tests

Build a connected Python debugging sequence from two complete resources: “Python tracebacks: follow the calls and explain the repair” and “Python testing: Green tests, wrong program”. These are the same two resources also available individually; check your existing copies before buying this bundle. Suggested ages 14–16. Learners should already read functions, return values, selection, loops, lists and zero-based indexes; the traceback pack also uses simple imports. Both have complete paper routes, explicit contracts and explained teacher answers. They are focused investigations rather than a complete examination course. The 21-page traceback pack follows four runtime cases: a lost heading name, strings passed to an adding loop, a one-based position used as an index, and an empty average. Twelve questions and three closing claims distinguish the failing frame, an earlier broken helper contract and a tempting change that removes the crash without meeting the requirement. The 22-page testing pack has three main investigations and one transfer: indicator boundaries, the first highest index, consecutive runs and adjacent changes. Seventeen prompts develop expected results, purposeful counterexamples, general repairs, retesting and carefully limited claims. A minimum-test argument belongs to its exact named candidates; a finite exhaustive check belongs to its stated domain. A useful order is to start with a whole traceback case, then use its quiet wrong result as the bridge to testing. Next choose the testing pack’s boundary and list investigations; finish with its independent transfer and qualified report. Retain the worked answers for discussion. Choose and split the material to suit the class; the testing pack itself proposes a flexible route across two sessions. A4 and US Letter versions repeat each pack. Together the main papers contain 43 pages, with 29 numbered questions across the two resources; the three traceback closing claims reuse its cases. Both include local Python/HTML support. The testing pack includes editable learner/teacher Word sources and a 17-frame HTML/PDF display with notes. Browser support shows supplied records or fixed models; learner Python runs only if you choose the included Python files. All formats repeat their parent investigations. Teachers judge explanations and alternative repairs. No account, online code execution, pupil tracking, automatic writing assessment, classroom-trial result or exam-board endorsement is claimed. Original content and code were generated and edited with OpenAI Codex (AI); complete independent font terms remain with each resource.

£4.50

Reviews

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.