Introduction
A while loop repeats a set of instructions as long as a condition is true. It helps do tasks multiple times without writing the same code again.
When you want to keep asking a user for input until they give a valid answer.
When you want to repeat an action until a certain number is reached.
When you want to process items in a list but don't know how many items there are.
When you want to keep running a game loop until the player quits.