Search notes:
Python: statement break
Effect on else-clause
If the
break
statement is executed in in a loop statement (
for
and
while
), the loop statement's
else
clause
is not executed.
See also
Extiting a
for
loop
with the
break
statement.
statements
Index