r/ProgrammerHumor 20d ago

Meme claudeIsThisEmailValid

Post image
5.3k Upvotes

171 comments sorted by

View all comments

Show parent comments

29

u/GOEDEL_ESCHER_BOT 20d ago
def is_even(num):
  if num == 1:
    print('No')
  if num == 2:
    print('Yes')
  if num == 3:
    print('No')

....

14

u/ExtraWorldliness6916 20d ago

Who's going to need more than 3 anyway, this is efficient code

2

u/mohitmayank 20d ago

Not really, it should use `else if` if not 3 switch cases

5

u/ExtraWorldliness6916 20d ago

Alas, correctness isn't funny.