you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 2 years ago

It exists, kind of. Python has this construct

for item in iterable:
    ...
else:
     ...

which always puzzles me, since it depends on a break statement execution. I always have to look it up when the else block is executed.

  • source
  • parent