this post was submitted on 12 Jun 2025
577 points (98.7% liked)

Programmer Humor

24373 readers
896 users here now

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.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 138 points 1 week ago (38 children)
print("odd" if num % 2 else "even")

That's the native python version, for those curious

[–] [email protected] 86 points 1 week ago (25 children)

The ternary syntax is really my only real gripe with python design -- putting the conditional BETWEEN the true and false values feels so very messy to me.

[–] [email protected] 21 points 1 week ago* (last edited 1 week ago) (4 children)

Eh, reads pretty naturally to me. That said, (like I lisp)

[–] [email protected] 1 points 1 week ago (1 children)

Oh, (you) (really) (like) (Lisp)? (That's) (great!)

[–] [email protected] 5 points 1 week ago* (last edited 1 week ago)

(is great (oh (really (like-p lisp you))))

load more comments (2 replies)
load more comments (22 replies)
load more comments (34 replies)