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 .


7 views

Related Posts

How to Install and Run Ollama on macOS

Ollama is a powerful tool that allows you to run large language models locally on your Mac. This guide will walk you through the steps to...

bottom of page