Zientzilaria

Covering the bioinformatics niche and much more

Commenting in Python

| Comments

As you might have noticed from the previous posts, comments in Python are defined mainly by the # sign. This is the signal used for single line comment like

1
#this is a single line comment

If you are used to C++, this would be equivalent to //. On the other hand, multi line comments are defined by triple double quotes """, opening and closing, similar to C++ /* ... */, like this

1
2
"""this is a multi line
comment"""

Just a note. Resuming bioinformatics mode.