Repeat instructions with count-controlled and condition-controlled loops.
Repeat code a known number of times using ERL for and Python range().
Repeat while a condition is true and update the value that controls it.
Run a loop at least once and keep input inside the repeated body.
Count events and build running totals without resetting them.
Place one loop inside another to process rows, columns and combinations.