News for hackers. Stuff that matters.
Re:A Python Guide for the Ages by asicsp on Saturday December 25, 2021 @03:36AM (#29681520)
From Python docs (https://docs.python.org/3/tutorial/controlflow.html#break-an...):

>When used with a loop, the else clause has more in common with the else clause of a try statement than it does with that of if statements: a try statement’s else clause runs when no exception occurs, and a loop’s else clause runs when no break occurs.

There are no comments on this comment yet.