In Python, comments start with a # character. However, sometimes, you can also write comments using docstrings(strings enclosed within triple quotes). Unlike C++, Python does not support multiline comments.
Here’s how a comment is written in Python:
>>> #line 1 of comment
>>> #line 2 of comment