Use Comments in Python

Author: Al-mamun Sarkar Date: 2021-04-04 06:16:14

We can use comments in PYthon which will not be executed by Python Interpreter (Compiler). We can use single-line comments or Multiline comments. 

 

Single-Line Comments:

# This is a single line comment
print("Welcome to Art of CSE")

print("Welcome to Art of CSE") # Another comment

 

Multiple Single Line comments:

#This is a comment
#This is another comment 
#You can add more comment
print("Welcome to art of CSE")

 

Multiline Comments:

"""
This is a comment
This is another comment 
You can add more comment
"""
print("Welcome to Art of CSE")