Appearance
add a comments to a code is to explain or describe the usage of the code, while the comments itself will not involved on execution
explain or describe the usage of the code
comments itself will not involved on execution
comments.py
# This is a single line comments print("Hello, World !") # It can exist here too
change row
""" This is the first line comments This is the second line comments I wont involved on the proggrame """ print("Hola !")
Results:
Hello, World ! Hola !
Comments
add a comments to a code is to
explain or describe the usage of the code, while thecomments itself will not involved on execution1. Single line comments
comments.py2. Multiple line comments
change rowcomments.pyResults: