Python vs. C++ - Comments
In Python, single-line comments are marked with a #
.
If you need multiline comments, you can use triple quotes """
or '''
to mark the start and the end of comments.
"""
This is a program
that prints 0, 1, and 2
"""
# Single line comment
i = 0 # Just like in C++
while i < 3:
'''
Three single quotes
also works
'''
print(i)
i += 1