Year 7 Python iteration


Name a variable?
1 / 14
next
Slide 1: Open question
ComputingLower Secondary (Key Stage 3)

This lesson contains 14 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 25 min

Items in this lesson


Name a variable?

Slide 1 - Open question


What is the string?

Slide 2 - Open question


What is the integer?

Slide 3 - Open question

Key learning objective:

Understand what iteration is and why we use it.

Slide 4 - Slide

Iteration is the act of repeating something, an example is a loop where we do something a number of times then stop.

Slide 5 - Slide

Activity - Stand up and do what the teacher asks you to do.

Slide 6 - Slide

Predict what this code does?

Slide 7 - Open question

Click here, was your prediction correct?

Slide 8 - Slide

range(3) 
0
1
2
Will output 0,1 and 2

Slide 9 - Slide

Make the following changes:

- Change the print statement to something else.
- What does changing the 5 do?
- What happens if we change item for i and print i ?

Slide 10 - Slide

Can you make:
- A for loop to count up to 10
- Print finished after the loop has ended
- Can you do a rocket count down 5,4,3,2,1 blast-off?

Slide 11 - Slide

What is iteration?

Slide 12 - Open question

Why is it useful?

Slide 13 - Open question

What is the name of the iteration function in Python?

Slide 14 - Open question