The range function is often used in loops to iterate over a specific sequence of numbers.

The condition of a while loop is checked before each .

A for loop is an example of iteration where the number of iterations is known in advance.

A do-while loop is an example of a loop with condition.