loading...

re: Else clause for Python's for loop VIEW POST

FULL DISCUSSION
 

Kind of cool, but I think it would be more readable to separate the loop into its own function, returning true if element.something and returning false otherwise after looping thru. It would be much less confusing to look at, IMO.

Code of Conduct Report abuse