Control Flow: Loops#

As mentioned in the previous chapter, control flow is the order in which a program executes.

In this chapter we will discuss loops which are used to repeat code blocks (allowing variation each time).

In Python there are two types of loops: the for loop and the while loop.