618
submitted 11 months ago by jroid8@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Bumblefumble@lemm.ee 3 points 11 months ago* (last edited 11 months ago)

So this won't do the intended thing if a is 0.

Edit: Sorry I meant to reply to the parent comment, realising now you already write the exact same thing.

[-] joyjoy@lemm.ee 3 points 11 months ago

Also if a is an empty collection or str, or false.

this post was submitted on 08 Dec 2023
618 points (96.4% liked)

Programmer Humor

32371 readers
568 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS