1.2 Comments

#’ is used for comments. The Python interpreter ignores commentsUse comments to briefly descibe what the code is doing. It is very important that you write comments..

# I am a comment
print('Hello World!') # I am also a comment
# Hello World!

You maydocstrings (documentation strings) are normally used for describing functions and not for comments. use a docstring for multi-line comments.

'''I
   am
   a
   docstring
'''
print('Hello World!')
# [1] "Hello World!"