Use Comments in Python

Use Comments in Python

Instructor-svgAl-Mamun Sarkar
Apr 04 , 2021

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")

 

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram