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/

Leave a Reply

Your email address will not be published.