There are two ways to comment in the python
- Single line Comments using Hash or Pound
#Symbol - Multiline Comments Using Tripple Quote
""" """
Single Line Comments
We can use Hash and pound symbol
Example
# This is single line commentprint("Hello C# Corner") # This is python print function# End of the program
Multiline comments
We can use triple quotes
Example
"""Thisismultiline comments"""'''Thisis alsomultiline comments'''
You can also use comments to define documantation of the program. For that you can use docstring
Note
To read more about about docstring click on the following link






