What are the Comments in Python?

Comments are used to write something which the programmer does not want to execute but want to keep that in the python program.

Types of comments

There are two types of comments –

1. Single line comments

Written using #

multi-line comments python

2. Multi-line comments

Written using ‘’’comment’’’

multi-line comments python

Majority of people use comments for making their programs much easier by writing the related information/content with the programs because it is not going to harm the code.

Comments are time saving

Comments save the time of users as well by putting the headings of code along with them.

time saving comments

What are the other methods to save time using comments in Python?

Write your answer in the comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *