Iteration
Coding: Introduction to Python v3, topic 1.6.2
Iteration
Iteration allows a group of statements to be repeated multiple times. Iteration statements are often called loops.

Indefinite iteration
- A block of code will repeat whilst a specified condition is true.
- For example, the while loop continues to execute an indented code block.
- The loop continues while a certain condition is true.

Definite iteration
- A block of code will repeat a known number of times.
- For example, a for loop will execute an indented block.
- The for loop executes the block for each value in a list of values.

Flow diagram
- A flow diagram for iteration uses the diamond shape.
Test yourself on Iteration
What are the two types of iteration?
What is definite iteration?