Multi-line Comments in Python


Use triple quotes for multi-line comments or docstrings.

Source Code

"""
This is a longer comment
spanning multiple lines
"""
def my_function():
    """This is a docstring."""
    pass
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments