Python comments | python comment multiple lines

comment in python


Comments are used to make the python program readable and it can also help to explain the code and best programmer always used comments in the program.

Syntax of Comment in python

a = 5 # assigned the value 
# Print a = 5
print("a = ",a)

Multiple line comment in python

"""
Python program to print the multiplication table
"""

for i in range(1,11):
    print(10,"X",i,"=",i*10)

This is the method to applied comment in python program.
Next Post Previous Post
No Comment
Add Comment
comment url