‘#’ 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 commentprint('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.
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..You maydocstrings (documentation strings) are normally used for describing functions and not for comments. use a docstring for multi-line comments.