In Python, comments are short summaries that are added to the code to make it more readable. They are used by programmers to record their thought processes when producing code. It explains why a certain line of code was written in the first place.
There are two ways to annotate your code in Python. The first is to provide comments that explain or indicate what a particular section of code (or snippet) accomplishes. The second approach employs multi-line comments or paragraphs as documentation for others reading your code.
In Python, a comment begins with the hash character # and continues until the end of the physical line. However, a hash character within a string value is not considered a comment. A remark can be written in three different ways: on its own line, next to a line of code, or as a multi-line comment block.
Block comments, inline comments, and documentation strings are the three types of comments available in Python.
A line of text in a Python programme that is not executed by the interpreter is known as a remark. During debugging, comments are used to detect problems and explain code. The hash symbol (#) is used to begin comments.
Learner's Ratings
4.6
Overall Rating
86%
0%
5%
5%
4%
Reviews
PATIL KUNAL SUNILBHAI
5
Fabulous learning experience
A
AMAN KUMAR
5
Very nice teaching.
S
Samiul Basir
5
She is best instructor I've ever learned.
S
Sujit babu
5
GREAT TEACHER ❤❤❤❤❤❤❤😍😍😍😍😘😘😘💕💕💕💕
R
Rajnish Kumar
5
ma'am this session is very well ma'am please prove Django
9
90videos Challenge5
5
Very good teching Thank You mam
A
Aditya Singh
5
Great learning experience, can we get the slides used in the lecture ?
P
prachi jadhav
5
Good platform to learn
E
Er Komal Gupta
5
very nice understandable....thanku mam
A
Ayush Kumar Tatia
5
Mam genuinely thankyou for making it so good , Bhagwaan aapko bhot aage le jaaye , rich log aapke content dekh ke certificate le , i truly wish 😊, mae hi baad mae pay krunge because i be rich futur😊
Share a personalized message with your friends.