+ 1
how can we write multi line comments
5 Answers
+ 2
""" just
like
this """
(these are three double quotes, not six single)
+ 1
Actually, these at the start of a function/class declaration will make it a docstring: that is a documentation inside Python.
So it's not really meant for it. Just use one # for each line if it is *not* for a docstring.
0
you can use three single quotes too
0
can we write comments in python like this?
0
yes, it's meant for it