0 votes
in Python by
What are comments and how can you add comments in Python?

1 Answer

0 votes
by

Comments in Python refer to a piece of text intended for information. It is especially relevant when more than one person works on a set of codes. It can be used to analyse code, leave feedback, and debug it. There are two types of comments which includes:

Single-line comment

Multiple-line comment

Below is the Codes needed for adding comment

#Note –single line comment

“””Note

Note

Note”””—–multiline comment

...