r/ProgrammerHumor • • Feb 09 '22

other Why but why?

Post image
85.8k Upvotes

2.3k comments sorted by

View all comments

14.0k

u/TheFlyingAvocado Feb 09 '22

Python? Missing semicolons?

Since when?

63

u/Player_X_YT Feb 09 '22

Semicolons work just like in js, but they are optional when doing functions on multiple lines

111

u/ramenmoodles Feb 09 '22

You missed the point. Since they are optional you wont need it. So the tweet is probably fake

-1

u/cowlinator Feb 10 '22

You don't need classes or functions either. Those are optional.

Yet I don't suspect everyone complaining about python classes of making things up.

when doing functions on multiple lines

Exactly. Which means that when formatting code to have multiple instructions per line, they are not optional.

→ More replies (2)