+ 1

What is the difference between the general purpose multi line comment that python doesn't have and the multi line comment with the 3 quotation marks?

27th Dec 2015, 10:24 PM
Mohsin Yamani
Mohsin Yamani - avatar
1 Réponse
+ 3
Python may not have a general purpose multi-line comments, but in dire need, one could use three single quote marks before and after your multi-line comment (so long as it's not a docstring). ''' This is an example of a multi line comment using the three single quote marks that being said, the PYTHON style guide PEP8 recommends using single lines with the # hash mark '''
18th Oct 2015, 5:38 PM
Deadly_Cicada
Deadly_Cicada - avatar