what is the purpose of adding a comment in the program? what are the two ways used to add the comments in python
Answers
Answered by
41
Answer:
to make programs understand able we usually add comments
like in java we add comment like this //* *//
and in python -- -- "" ""
Answered by
29
Comments are used to make the code more readable.
Two ways of adding comment in Python:
- using the hashtag
e.x., # This is a comment
- using \* *\ for multiple lines
e.x., /* This is a multi
line comment */
Similar questions