| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Understand why data is stored in external files and how programs can access them | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a quick discussion: ask students where they think a program keeps its data after it stops running. Recall prior learning about variables and memory limits, then introduce today’s success criteria – students will be able to explain why external files are needed, identify file types and modes, and demonstrate basic file handling in code. |
Lesson Structure:
|
|
|
Conclusion: Summarise that external files provide persistence, sharing, and efficient handling of large data, and that using the correct mode and always closing a file are essential practices. For the exit ticket, ask each student to write one file mode and its appropriate use. Homework: complete the worksheet by implementing a Python script that reads a text file and writes a summary report. |
|
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.