Chrome Extension

Add comments in python

#Write comment text here
print("Hello World 1!")

print("Hello World 2!") #OR like this

"""
This is a multiline comment
You can add as much lines as you want
"""
print("Hello World 3!")
We are a bunch of lazy programmers so we developed this chrome extension
search code from your favorite search engine
Install Now
Output
Hello World 1!
Hello World 2!
Hello World 3!

There are two ways to add comments in python. Either you can add '#' before any string or sentence or you can use """ comment text """ string literals. Python code will ignore the text written between them.

Was this helpful?
0 Comments
Open Code Manager We are hiring