top of page

Python Comments

Updated: Apr 19, 2023




A comment is a non executable line of code.


There are two types of comments in Python.


They are single line comments and multi-line comments.


A single comment starts with #. Anything that follows # is ignored by the Python interpreter.


A multi-line comment starts with “”” and ends with “””. Anything in between “”” and “”” is ignored.




#This is a simple Comment
print("Wow comments!")

print("Super statement!") #This is a comment

#This is comment line 1
#This is comment line 2
#This is comment line 3
#This is comment line 4
print("Wow comments everywhere!")


"""
This is a multiline 
comment written 
here
"""
print("Yay! Comments tutorial!")

The link to the Github repository is here .


Subscribe to get all the updates

© 2025 Metric Coders. All Rights Reserved

bottom of page