Use of Comments

Comments are used for large and complex software to add some remarks or a note in the source code. Comments are not executed by interpreter.
Comments are used for remembering the meaning and purpose of source code and its input and output requirements, so that we can remember later how it functions and how to use it.

Comment may be of two types:
a) Single Line Comment
b) Multiple Line Comment

Single Line Comment

A remark line starts with # (hash sign) and till the end of that line is treated as a comment and the interpreter simply ignores it while executing the statement.

Single Line Comment

Multiple Line Comment


Multiple Line Comment