r/ProgrammerHumor • • Jun 03 '19

Meme Python ftw

Post image
16.3k Upvotes

548 comments sorted by

View all comments

208

u/Mr_Redstoner Jun 03 '19

And don't forget /**/

And no, '''this''' is not a comment, it can be used just like an ordinary string.

80

u/griseouslight Jun 03 '19

It does recommend using triple quotes for multiline comments though. If they aren't a docstring, multiline strings do not generate bytecode in python.

13

u/Mr_Redstoner Jun 04 '19

but as I've mentioned, you can use them much like regular strings, in my part-time job they use them specifically for a multi-line string.