Automates repetitive tasks
Iterates/traverses over a sequence (list, tuple, string)
each item in sequence
Last item reached?
Y/N
Back to sequence
Yes
No
Exit Loop
Looping through items in a tuple
Looping through characters in a string
range ( ) function
Keeps running as long as the condition is true.
Enter While Loop
Condition
T/F
Back to Condition
False
True
Exit Loop
Alternating the flow of a loop
Terminates the loop
Condition
T/F
Break
Y/N
Back to Condition
Enter Loop
False
True
Yes
No
Exit Loop
Break statement in a for loop
Break statement in a while loop
Skips the current code block and returns back to the loop
Condition
T/F
Continue
Y/N
Back to Condition
Enter Loop
False
True
Yes
No
Exit Loop
Continue statement in a for loop
Continue statement in a while loop