In this lesson, we'll show how to use control flow to run the same line(s) of code multiple times in a loop. Make sure to follow along by opening the Python shell and experimenting with the example ...
This algorithm would allow five numbers to be inputted and would work out the total. A count-controlled loop would be used because it is known, in advance, how many times the algorithm needs to loop.