If you observe in the program above, we use the symbol # to begin a
statement after declaring a variable. Nevertheless, it shouldn’t be used
within a string literal. The Python interpreter ignores comments because
they are not part of the program but provide an explanatory note for the
programmer. Let us look at this example below:
#Learning
about Comments in Python
print “Learning Python Language isn’t complicated.”
#Another comment
to make things better
When
you run this program, the output will be:
Learning Python Language isn’t complicated.
Do'stlaringiz bilan baham: