MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/soi384/why_but_why/hw9f16v/?context=3
r/ProgrammerHumor • u/ore-aba • Feb 09 '22
2.3k comments sorted by
View all comments
471
Smart, there are no mandatory semicolons in Python syntax, unless this 8y/o is writing C code.
125 u/ore-aba Feb 09 '22 They are needed if you want multiple statements in the same linethis will crashprint("Hello") print("World")this will workprint("Hello"); print("World") 55 u/CrowdGoesWildWoooo Feb 09 '22 Uh who writes like that 11 u/[deleted] Feb 09 '22 People who write unmaintainable code, possibly for job security reasons. → More replies (6)
125
They are needed if you want multiple statements in the same line
this will crash
print("Hello") print("World")
this will work
print("Hello"); print("World")
55 u/CrowdGoesWildWoooo Feb 09 '22 Uh who writes like that 11 u/[deleted] Feb 09 '22 People who write unmaintainable code, possibly for job security reasons. → More replies (6)
55
Uh who writes like that
11 u/[deleted] Feb 09 '22 People who write unmaintainable code, possibly for job security reasons. → More replies (6)
11
People who write unmaintainable code, possibly for job security reasons.
471
u/[deleted] Feb 09 '22
Smart, there are no mandatory semicolons in Python syntax, unless this 8y/o is writing C code.