Myths about teaching can hold you back
Learn why
These resources will be removed by the end of the Spring Term 2026.
Start using our brand new teaching resources now. Designed by teachers and subject experts, with real classrooms in mind.
The older resources below were created for lockdown learning during the pandemic and are not designed for classroom teaching.
Lesson details
Key learning points
- In this lesson, we will be introduced to 'for loops'. For loops allow us to iterate through a sequence. We will find out how to create and use a for loop in this lesson.
Licence
This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.
3 Questions
Q1.Complete the sentence. A while loop is an example of ...
Complete the sentence. A while loop is an example of ...
Selection
Sequence
Subroutines
Q2.What will be output on the screen when this program is executed?
What will be output on the screen when this program is executed?

3,2,1
4,3,2,1
There is an error in the program
Q3.Which line of code in the program below contains a condition?
Which line of code in the program below contains a condition?

1
3
4
5
3 Questions
Q1.What will be the output when this program is executed?
What will be the output when this program is executed?

1, 2, 3, 4, 5
x, x, x, x, x
Q2.When using the range() function. What is the first parameter used for? e.g. range(1, 11, 2)
When using the range() function. What is the first parameter used for? e.g. range(1, 11, 2)
The maximum value
The step or increment
The stop value
Q3.When using the range() function. What is the second parameter used for? e.g. range(1, 11, 2)
When using the range() function. What is the second parameter used for? e.g. range(1, 11, 2)
The maximum value
The start value
The step or increment