0
Hi. How do i insert a mulit-line comment in Python? Is it as easy as it sounds? I feel like im over-thinking it. Thanks!
5 odpowiedzi
0
One way to comment on more lines is using multiline string
"""
multiline
comment
"""
And second is commenting each line
# multiline
# comment
0
This is how I was expecting it to be. Thanks a lot!
0
There are no multi-line comments in Python. You can use multi-line string instead. Multi-line strings are processed by interpreter in contrast with comments but they are often used for this purpose.
https://www.sololearn.com/learn/Python/2274/
0
Okay thanks. My course told me to insert a multi-line comment and it made me confused 🤣