what are comments? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what are comments?

13th Jul 2016, 8:25 PM
George Rosinski
George Rosinski - avatar
4 Answers
+ 1
Comment make our program to understand for others. Its a good habit to use comment while writing code and it is also ignored by compiler or interpreter.
13th Jul 2016, 9:15 PM
Shriram Moond
Shriram Moond - avatar
+ 1
You can use comments to write notes or remind yourself what the code is trying to do. Any text for the rest of the line following a hash mark (#) is part of a comment. Python ignores comments.
14th Jul 2016, 2:16 AM
Francisco Gómez García
Francisco Gómez García - avatar
0
comments are idea's that aren't in the output
13th Jul 2016, 8:26 PM
George Rosinski
George Rosinski - avatar
0
Using comment in program is good. It helps you to understand the code and it's not executed.
17th Jul 2016, 8:01 AM
AMITKUMAR PRAJAPATI
AMITKUMAR PRAJAPATI - avatar