Python 101 : Breaking out of a "while" loop - while ... else -
We could use the "while ... else" construct to break out of a "while" loop as soon as a condition is fulfilled.
We could use the "while ... else" construct to break out of a "while" loop as soon as a condition is fulfilled.
Comments