Errors and debugging lesson for Pearson Edexcel International GCSE Computer Science (4CP0), with editable PowerPoint slides, a student worksheet and full answers. Syntax, runtime and logic errors each need a different fix; students identify the type of error, locate it and correct the program.
Written for Topic 2 Programming (spec 2.1.3, 2.1.5). Everything is editable, so you can adapt it to your class.
What’s included- PowerPoint lesson (15 slides) with teacher notes on every slide
- Student worksheet (Word), ready to print or edit
- Answer sheet (Word) with mark-scheme style answers for every question
By the end of the lesson students can:
- Tell syntax, runtime and logic errors apart
- Read a Python error message to find the line and the cause
- Locate and fix errors in a program, then test it again
Worksheet sections: A. Classify the errors; B. Read the error messages; C. Find and fix four errors; D. Exam-style questions; E. Challenge
Every lesson includes- Learning goals and a starter question
- Clear explanations, diagrams and worked examples (Python 3 throughout, with Pearson pseudocode alongside)
- A quick check and a “your turn” task linked to the worksheet
- Exam-style questions with marks, and an exit ticket
- PowerPoint (.pptx) and Word (.docx), fully editable
- Works in PowerPoint and Google Slides
- Bright, clear GCSE design, consistent across the whole course
These are independent resources written for the Pearson Edexcel International GCSE (9–1) Computer Science specification (4CP0, Issue 1). They are not produced or endorsed by Pearson. Spec point numbers are Pearson’s, with a letter added where we split a statement across lessons.
More lessons in this series- Previous lesson: Writing readable code – Edexcel IGCSE Computer Science lesson
- Next lesson: Practice: selection and loops – Edexcel IGCSE Computer Science
- Save with the bundle: Programming Part 1 – Edexcel IGCSE Computer Science (19 lessons)
Last updated: November 2026.
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.