how can we write multi line comments | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how can we write multi line comments

23rd Nov 2016, 5:23 AM
Yudhishther Seth
Yudhishther Seth - avatar
5 Answers
+ 2
""" just like this """ (these are three double quotes, not six single)
23rd Nov 2016, 6:10 AM
Demeth
Demeth - avatar
+ 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.
24th Nov 2016, 5:48 PM
Amaras A
Amaras A - avatar
0
you can use three single quotes too
23rd Nov 2016, 6:12 AM
asdadasdsaczxc
0
can we write comments in python like this?
23rd Nov 2016, 6:13 AM
Yudhishther Seth
Yudhishther Seth - avatar
0
yes, it's meant for it
23rd Nov 2016, 7:23 AM
asdadasdsaczxc