Python supports two types of comments:
In case user wants to specify a single line comment, then comment must start with ?#?
If we have comments that extend multiple lines, one way of doing it is to use hash (#) in the beginning of each line. For example.
#This is #educational website. #URL is freetimelearning.com
Another way of doing this is to use triple quotes, either ''' or """.
These triple quotes are generally used for multi-line strings. But they can be used as multi-line comment as well. Unless they are not docstrings, they do not generate any extra code.
""" This is educational website. URL is freetimelearning.com """