How to use multi-line comment in python?
Python doesn’t have a multi-line comment. Most people who want to do a multi-line comment just use triple quoted strings.
[code]
”’ for example
you could do
something like this
as a multi-line comment ”’
[/code]
But personally, I will do it like this:
[code]
# This
# is
# a
# multi-line
# comment
[/code]
Permanent link to this article: https://blog.openshell.in/2013/03/how-to-use-multi-line-comment-in-python/
Mar 15
How to use multi-line comment in python?
March 15, 2013
Python doesn’t have a multi-line comment. Most people who want to do a multi-line comment just use triple quoted strings.
[code]
”’ for example
you could do
something like this
as a multi-line comment ”’
[/code]
But personally, I will do it like this:
[code]
# This
# is
# a
# multi-line
# comment
[/code]