![]() |
Conceptual Review (page 43 of 55) |
Loops (repeated steps) have iteration variables that change each time through a loop. Often these iteration variables are numbers or Boolean values.
We have to be careful to not loop indefinitely. We have to make sure we change the iteration variable at some point to exit out of the loop.
A business use case for while loops could be one where we re-attempt to download data from the web until we have successfully connected to the server and have fully donwloaded the file into our Python script.

