210
you are viewing a single comment's thread
view the rest of the comments
[-] roz@lemmy.blahaj.zone 7 points 3 months ago

What's worse, that Python doesn't need semicolons, or that if used, they are ignored? 🤔

[-] ViatorOmnium@piefed.social 14 points 3 months ago

They are not ignored, you can use them to put multiple statements in one line

[-] usernamesAreTricky@lemmy.ml 5 points 3 months ago* (last edited 3 months ago)
>>> print("proof by counterexample in a python REPL")
proof by counterexample in a python REPL
>>> x = 2; print(x)
2
>>> print("this is not ignored"); print("it's just mostly useless"); print("but you can use as many as you want")
this is not ignored
it's just mostly useless
but you can use as many as you want
this post was submitted on 07 Jun 2026
210 points (98.2% liked)

Programmer Humor

43588 readers
6 users here now

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

Rules:

founded 7 years ago
MODERATORS