this post was submitted on 13 Jun 2025
1382 points (99.4% liked)

Comic Strips

18495 readers
1748 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BeardedGingerWonder@feddit.uk 15 points 1 month ago (8 children)

This, this shit is why I would never have made a mathematician.

[–] Jankatarch@lemmy.world 10 points 1 month ago* (last edited 1 month ago) (3 children)

You say that but every time you make a void function that takes no arguments all the mathmaticians in a 12 mile radius combust.

[–] Fillicia@sh.itjust.works 4 points 1 month ago (2 children)

That's why in python you should never write 0 when False is clearly the superior choice.

[1, 2, 4, 5][False]

1

[–] kevin2107@lemmy.world 2 points 1 month ago (1 children)
[–] Fillicia@sh.itjust.works 2 points 1 month ago

That not even the best

[1,2,3,4,5][-True]

>>> 5

load more comments (4 replies)