Comments in Python

Comment

- Comment used to understand the code.

- Comments can make code more readable.

- Comment starts with a #, comment not showing in output.


Single line Comments:

- Comment starts with a #, comment not showing in output.



- Comment placed at the end of a line, comment not showing in output.



Multiple-Lines Comments:

- 1st Way… (Using # for each line)



- 2nd Way… (Using triple quotes (”””), add a comment inside it.)

Comments