122
ππ...
(lemmy.ca)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Python, though the logic would be backwards:
Right, it would be started basically exactly the opposite. Certainly not a statement followed by an if block.
The code block I wrote is a statement followed by an if. What I meant be "backwards" was the order of conditions, not that the statement came after the if. It's exactly what you asked for.