Python Comments ΒΆ

In this tutorial, we will learn about Python statements, why we use them, and how to use comments in the right way.
In computer programming, comments are hints that we use to make our code more understandable.
Comments are completely ignored by the interpreter. They are mean t for fellow programmers. For example,

Note

Here, we have used the following comments,
declare and initialize two variables print the output In Python, there are two types of comments:
single-line comment
multi-line comment
Another way of doing this is to use triple quotes, either ''' or """ These triple quotes are generally used for multi-line strings.
Use of Python Comment
1. Make Code Easier to Understand
2. Using Comments for Debugging