Introduction
A while loop helps you repeat a set of actions as long as a condition is true. It saves time by automating repeated tasks.
When you want to keep asking a user for input until they give a valid answer.
When you want to count or do something repeatedly until a certain number is reached.
When you want to keep checking if a condition is true before stopping.
When you want to run a game loop that continues until the player quits.