Skip to content

Using for loops to iterate data structures

Lesson 3 / 6

Lesson video

0:00 / 0:00

Lesson slides

not available yet

Lesson details

Lesson outcome

I can use a for loop to inspect every element of a list.

Show transcript
Count-controlled iteration is implemented using for loops in Python. The range() function can be used with a for loop to specify the number of times that a for loop should iterate. For loops can be used to iterate through each item held in a list to inspect each item in turn.

Worksheet

not available yet

Quizzes

This quiz is not available yet.

What pupils see

The same lesson as a pupil sees it. You can set any section as work on its own.

  • IntroductionPrepare · Not available
  • Starter quizActivate · Not available
  • Lesson videoLearn
  • Exit quizCheck · Not available
This content is by Cashar and published under an open licence.