Commenting code in python- comments have value, so it’s important to know how to write them. Luckily, Python supports three main options.
Code for Commenting Code in Python-
# Here is an inline comment in Python
# Here
# is
# a
# multiline
# comment
# in
# Python
"""
Here is another multiline comment in Python.
This is sometimes interpreted as a docstring,
so be careful where you put these.
"""