Learn Python Comments

Part 1

How to create Python comment and why

We use comments in between python code lines, to make it easier for other programmers and ourself to understand what is going on.

You start comment with a # , and Python will ignore them:

Code Example:

                   # I am a comment
                  print("Free code wiki")

Multi Line Comments

Part 2

With Python, you can also use multi line comments.

Code Example:

                  """I am a comment
print("Test!") : (notice pythin will not print this line)


Part 3

tip: You can place Python comment at the end of a line.


Code Example:

                       print("Free code wiki") # I am a comment

learn Python programming courses and many other Programming classes for free , our main goal is to allow students to learn Python lessons and other online coding courses in one place easily.