this post was submitted on 12 Jun 2025
592 points (100.0% liked)

Programmer Humor

24788 readers
657 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] 140 points 3 weeks ago (39 children)
print("odd" if num % 2 else "even")

That's the native python version, for those curious

[–] [email protected] 92 points 3 weeks ago (26 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] 22 points 3 weeks ago* (last edited 3 weeks ago) (4 children)

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

[–] [email protected] 2 points 3 weeks ago (1 children)

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

[–] [email protected] 5 points 3 weeks ago* (last edited 3 weeks ago)

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

load more comments (2 replies)
load more comments (23 replies)
load more comments (35 replies)