Year 7 Python iteration


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

In deze les zitten 14 slides, met interactieve quizzen en tekstslides.

time-iconLesduur is: 25 min

Onderdelen in deze les


Name a variable?

Slide 1 - Open vraag


What is the string?

Slide 2 - Open vraag


What is the integer?

Slide 3 - Open vraag

Key learning objective:

Understand what iteration is and why we use it.

Slide 4 - Tekstslide

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

Slide 5 - Tekstslide

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

Slide 6 - Tekstslide

Predict what this code does?

Slide 7 - Open vraag

Click here, was your prediction correct?

Slide 8 - Tekstslide

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

Slide 9 - Tekstslide

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 - Tekstslide

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 - Tekstslide

What is iteration?

Slide 12 - Open vraag

Why is it useful?

Slide 13 - Open vraag

What is the name of the iteration function in Python?

Slide 14 - Open vraag