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

▼ Show 1 Answer

0 votes

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”””—–multiline comment

Learn More with Madanswer

Related questions

0 votes
asked Feb 11 in Python by SakshiSharma