Skip to content
Go to teachersPupils ✏️
▶Lesson video

Using for loops to iterate data structures

0:00 / 0:00
Download:
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.