single line comment in python code example

Example 1: python comment

# This is a comment

""" This is a comment"""

"""
This is a comment
Also this is a comment
"""

Example 2: how to make a comment python

# You use a hastag at the beginning of the line to make anything after it a comment
'''
You can also make a multi line comment
With three single quotes at the beginning and end!
'''

Example 3: multiline comment python

# While Python doesn't support multi-line comments, it can ignore anything
'''
inside a multi-line string!
Just wrap the comment in the three single quote marks,
And
you're
good
to
go!
'''

Example 4: how to add comment in python

# Use Hashtag to add comments in python

Example 5: multiline comment python

# Python doesn't support multi-line comment blocks out of the box.
# The recommended way to comment out multiple lines of code in Python is
# to use consecutive single-line comments.
# feelsbadman

Example 6: python comment

# This line is cemmented out