Vitalik Buterin
@vitalik.eth
"continue" might be the worst-named keyword in python. Like, consider this code: for i in range(100): if i % 5 == 0: continue print(i) It prints out numbers that are not multiples of 5. But if you give it to someone who is not experienced in python, they might think the exact opposite!
51 replies
122 recasts
631 reactions
Nico
@nicom
Well just revert the condition then, why make things complicated? for i in range(100): if i % 5 != 0: print(i)
2 replies
0 recast
7 reactions
Ticket guy🏷️
@ticketguy
This is simple and easily understandable.
0 reply
0 recast
0 reaction