Introduction
Loops let you repeat actions many times. Sometimes you want to stop the loop early when a condition is met. The break keyword helps you do that.
When you want to keep asking a user for input until they give a valid answer.
When searching through a list and stopping once you find what you need.
When running a game loop that ends when the player loses or wins.
When processing data until a certain condition is true.
When you want to exit an infinite loop safely.