7 Loops

7 Loops#

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.