The first line contains a comment. The character # convert the rest of the line to a comment.
#This is a single line
You can also comment out a block of text by enclosing it between the ”’ and ”’ characters. This is shown in the following example.
”’
This is a
multiline comment.
”’
Program:
1 2 3 4 5 6 7 8 9 10 |
''' This is a multiline comment. ''' #This is a single line print ("Hello, World!") |