pdf, 104.64 KB
pdf, 104.64 KB
pdf, 104.11 KB
pdf, 104.11 KB
zip, 4.22 MB
zip, 4.22 MB

Why can green tests leave a program wrong? Learners predict from contracts, choose counterexamples, repair rules and qualify what their evidence establishes. Ages 14–16; functions, if/else, loops, lists and zero-based indexes. The paper route works without devices.

ORIGINAL A–D/R · 17 prompts. A: numeric endpoints, colour thresholds and type/range rejections. B: the FIRST maximum index, ties and a minimum test set for three named faulty candidates. C: consecutive runs rather than totals. D/R: adjacent-change transfer and a more careful testing report. Full programs, response space, outcomes, repairs and explained reasoning; B5 is an optional proof challenge.

OPTIONAL E · 3 further prompts. Does correct final output establish a helper’s promised behaviour? Read a complete three-helper program, diagnose an actual downstream KeyError, choose a regression and compare two repairs. All 585 permitted inputs give correct final strings in one candidate while its normaliser still fails 570 helper checks. Extra prerequisite: dictionary lookup and string strip/upper; method help included. The original course is complete without E.

FILES · Two unchanged 22-page main PDFs, A4/US Letter (learner pages 3–15; preparation 2; answers/evidence 16–20). One whole ZIP, 60 members: those papers, all original optional files and E. Original teacher/learner Word sources, 17-frame HTML/PDF display, speaker notes, visual display editor, fixed-outcome lab and four Python files stay unchanged. They cover A–D/R, not E. Unpack fully; open START.html.

E has A4/Letter learner and teacher PDFs, native editable DOCX/ODT and offline HTML. Learner: 5 work pages + 4 reference pages; teacher: those 5 + 3 guidance/model pages + 4 reference pages. Four complete program versions, 24 captured examples, 12 captured test runs and a reproducible finite checker accompany the case. Twenty numbered prompts overall; versions, records and formats add no cases. Stage E2 before showing comparison/models.

Browsers select recorded results; they do not run Python or mark reasoning. E’s three response fields support local JSON download and preview/confirm restore. The original visual editor changes its 17 frames and exports local projects/self-contained HTML. No automatic save; edits do not update other formats. Optional real Python: existing 3.11+, standard library only. Captures use 3.14.4. Complete checks apply only to exact stated domains, sources and observations.

Created with OpenAI Codex (AI), Swale & Sign. Local Chromium, Writer and Python checks; no classroom trial or exam-board endorsement. No accounts, pupil data, external service or package download needed. Purchased Tes licence; full independent font conditions included.

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.