PREV NEXT
Python comments:
Python Programming language supports two types of comments. They are,
1. Single line comments:
Single line comments start with ‘#’ Symbol.
Example:
#this is single line comment
2. Multiple line comments:
Multiple line comments start with triple quote and end with triple quote.
Ex:
‘’’ Hi this is multi line
Comments, please use for document
It is good ‘’’
Example:
1 2 3 4 5 6 7 |
# This my first single line comment in python script print “This is my first display statement” ‘’’ This my first multi line comment in python script So I am starting in new line, ending comment’’’ |