Code tells you How while comments tell Why.

Comments are any text to the right of the # symbol and is mainly useful as notes for the reader of the program.

E.g. 1

# print('hello world') here this should considered as comment and does not excute in code.

Or

E.g. 2

# Here print is a function

print('hello world')

Comments can be used to :

1.explain assumptions

2.explain problems you're trying to solve

3.explain important decisions

4.explain problems you're trying to solve

5.explain important details 

Python supports two types of comments:

1) Single Line Comment:

In case user wants to specify a single line comment, then comment must start with ?#?

Eg:

   # This is single line comment.      print "Hello Python"  

Copy

Output:

Hello Python

Copy

2) Multi Line Comment:

Multi lined comment can be given inside triple quotes.

eg:

''''' This    Is    Multipline comment'''  

Copy

eg:

#single line comment   print "Hello Python"   '''''This is multiline comment'''

Copy

Output:

Hello Python

Comment is not a part of the program, but it enhances the interactivity of the program and makes the program readable.