2 ms·
I think you're mistaken on both counts. The first answer is what I call the "commonsense interpretation" and it is incorrect about what python's for/else does.
by nickm12 8y ago
I think you're mistaken on both counts. The first answer is what I call the "commonsense interpretation" and it is incorrect about what python's for/else does.
- rplnt 8y agoI don't know what to tell you... For break to be called explicitly it has to enter the loop body - there is no other way. The break only works in the loop body. And the first answer is correct in the sense that it is not wrong (try it). The poll is simply flawed.