while loop
While is a way of repeating commands until a condition is no longer true
Everyday while loop algorithms
While bus not arrived
Message your friends
Listen to music
Get on bus
Parts of the algorithm
Condition bus not arrived
Repeated actions indented
Message friends
Listen to music
Action after the while loop
Get on bus
While used to generate the 2x table up to 12x2
While used in CVC word generator
Output might look like this
After pod appeared the user clicked 1 and it was appended to the list.
After fuw the user clicked 3 and the program printed the real_words list and then stopped when it reached the while command.