GCSE – Lesson 12 – While loops
This lesson allows learners to find out about using iteration in their programs. It will define iteration, give a code walkthrough of a while loop, and then use a ‘guess the number’ game as a practical example for using iteration. Live coding will be used to turn an if statement into a while loop, and learners will be given a series of challenges to extend the ‘guess the number’ game using programming skills that they have gained during this course.
Learning objectives
- Define iteration as a group of instructions that are repeatedly executed
- Modify a program to incorporate a while loop
Package contents
- Lesson plans
- Slide decks
- Learner resources
- Homework
Don't have an account?
GCSE revision
A comprehensive range of content and helpful practice questions are also available for this topic.
View on Ada Computer ScienceEnjoyed teaching these lessons? Found a mistake?
Fill in a short form to give feedback on these resources.