GCSE – Lesson 14 – For loops
This lesson is designed to introduce learners to the concept of a for loop. They will learn about the definition, and be shown how the range function can be used with a for loop. This lesson only focuses on the range function; the wider use of for loops will be covered later on in the unit. This will enable them to be able to compare a while loop and a for loop at an earlier stage in the unit. After a walkthrough of a for loop, learners will be given a times table generator to explore and modify. Finally, learners will compare a while loop to a for loop and develop definitions for each.
Learning objectives
- Define a for loop
- Walk through code that uses a for loop
- Modify a program that uses a for loop
- Compare a while loop and a for 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.