python how to comment a function code example

Example 1: how to add comment in python

# Use Hashtag to add comments in python

Example 2: python comment

# This line is cemmented out

Example 3: comment in python

# single line : add # 

""" 
The recommended method for commenting multiple lines is using # on each line.
The (“””) method isn’t actually a comment but defines a Text constant
of the text between the (“””).
It isn’t displayed, but exists and could potentially cause unexpected errors.
"""

Example 4: how to add a cooment in python

#How to add a comment/multi-line comment in python

#This is a single line comment

#For a single line comment, you need to add a hashtag in python.

"""
This is the multi-line comment
You start of with triple single quotes or else you can also start with
triple doulble quotes (hope that makes sense) and then you end with triple
single quotes or triple double quotes
"""