Python Comment
Categories: Python
Apythton comments starts with the hash character, # , and it extendsto the end of the physical line. A # (Hash) character within a stringvalue is not seen as a comment.
Commentsin Python arethe lines in the code that are ignored by the interpreter during theexecution of the program. Comments enhance the readability of thecode and help the programmers to understand the code very carefully.There are three types of comments in Python –
Singleline Comments
MultilineComments
DocstringComments
InPython, every statement ends with a newline character. But like wehave seen, it is possible to span a statement over multiple lines.
Wedo this using the ‘\’ character.
Example :
>>>a=\
10\
+20
>>>a
Output
30