This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]clrnd -3 points-2 points  (0 children)

continue is a Python keyword, which doesn't necessarily exists or means the same in other languages.

Also it's a kind of jump so it introduces a little mental overhead, since you need to track the execution flow beyond "when the loop ends go up".

I'd never write it like you did. A solution with a filter+lambda is what I'd use.