In Python, comments are lines of code that are disregarded by the compiler during the program’s execution. Comments improve the readability of the code and assist programmers in completely comprehending it. In Python, there are three sorts of comments: Single line Comments Multiline Comments Docstring Comments