concept break in category python

appears as: break
Hello! Python

This is an excerpt from Manning's book Hello! Python.

One of the great things about computers is not that they can do things, but that they can do things over and over and over and not get bored. Big lists of numbers to add? No problem. Hundreds of lines of files? Ditto. The program only needs to know what it’s going to be repeating and when it should stop. In the Hunt the Wumpus program, you’ll be using a structure called a while loop, which loops as long as a condition that you specify is true, and a break statement, which allows you to control when it stops. Here’s an example:

In the next chapter, we’ll take a break and write your own adventure game, with monsters, treasure, danger, and excitement!