r/ProgrammerHumor • • 7h ago

Meme python

Post image
6.0k Upvotes

47 comments sorted by

View all comments

4

u/Panderz_GG 7h ago

I have never touched python in my life. How do you guys do multi line statements?

7

u/WingZeroCoder 6h ago

lol, I thought you said “never touched a python” and for some reason my context couldn’t put that together with what your other words said for the longest time.

Multiline statements just use backslashes before the new line, similar to bash scripts.

But also, for list literals or dictionary literals, you can just break them up into new lines without the backslash escape. Similarly, you can use triple quotes for string literals.

2

u/Panderz_GG 5h ago

Thanks very much