--Originally published at Start in the world of the #TC101
Loops in Think Python
A “while” loop permits code to execute repeatedly until a certain condition is met. This is useful if the number of iterations required to complete a task is unknown prior to flow entering the loop.
Example: