Python Comments
- Comments can be used to explain the Python code.
- Comments can be used to make the code more readable.
- Comments can be used to prevent execution when testing code.
- Comments starts with a #, and Python will ignore them.
#This is python comment
Multi-Line Comments In Python
Python does not really have a syntax for multi line comments.
To add a multi-line comments you could insert a #
for each line:
Example
#This is a comment
#written in
#more than one line
Post a Comment
Post a Comment
Please do not enter any spam link in the comment box