Previous Next

Python Comments

It is used to make the code more readable.

Single-Line Comments

Single-line comments begin with the hash symbol (#).

#This is a single line comment
print("Hello World!!")

Output

Hello World!!

Multi-Line Comments

You can utilize (#) on every line to have multi-line comments.

#This is a
#multi line
#comment

print("Hello World!!")

Output

Hello World!!
Previous Next