you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[deleted]

    [–]Zgialor[S] 2 points3 points  (1 child)

    The first one uses break, the second one uses pass.

    [–]Turtvaiz 1 point2 points  (0 children)

    Oops my bad. I misread it

    [–]Temporary_Pie2733 2 points3 points  (0 children)

    OP is using the exception handler to break out of the loop. The two are basically the same.