how to write multi line comments using # | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to write multi line comments using #

23rd Nov 2016, 5:21 AM
Yudhishther Seth
Yudhishther Seth - avatar
3 Answers
+ 2
For each line you will have to use #. Example, #this #is a #multi-line comment. I would suggest you to use string literals which would behave like a comment. you will have to use three double quote or single quotes to make it multi-line comment. Example, """this is a multi-line comment using string literal."""
23rd Nov 2016, 5:36 AM
Nagendra Prajwal
Nagendra Prajwal - avatar
0
thanks Nagendra Prajwal
23rd Nov 2016, 5:40 AM
Yudhishther Seth
Yudhishther Seth - avatar
0
like this #may #the #python #be #with #you
23rd Nov 2016, 8:39 AM
tianqifu