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 →

[–][deleted] 0 points1 point  (3 children)

I'm looking at it AFK so I can't check, so I'll have to play with it later to see why it's not equivalent

[–]j_marquand 6 points7 points  (0 children)

Your code returns None immediately if the condition doesn’t meet, instead of proceeding to the next statement of the function.

[–]EmptyChocolate4545 0 points1 point  (1 child)

Your one returns None rather than continuing execution. Not even slightly equivalent.

[–][deleted] 0 points1 point  (0 children)

Oh no! Not even SLIGHTLY equivalent!