Python · While loops

Off by one

The most common loop bug runs one time too many or one too few, and two quick checks catch it before it ships.