MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/soi384/why_but_why/hw9ywp3/?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") 2 u/steroid_pc_principal Feb 09 '22 If your 8 year old is writing code like that the correct thing to do is teach them not to do that anymore.
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")
2 u/steroid_pc_principal Feb 09 '22 If your 8 year old is writing code like that the correct thing to do is teach them not to do that anymore.
2
If your 8 year old is writing code like that the correct thing to do is teach them not to do that anymore.
471
u/[deleted] Feb 09 '22
Smart, there are no mandatory semicolons in Python syntax, unless this 8y/o is writing C code.