What are the two ways of writing comments in Python programs ? Give
Example.
Answers
Answered by
4
Answer:
Before we go through an example of comments in Python. Lets first understand the need of comments in Python or in any programming language.
A comment is text that doesn’t affect the outcome of a code, it is just a piece of text to let someone know what you have done in a program or what is being done in a block of code. This is especially helpful when someone else has written a code and you are analysing it for bug fixing or making a change in logic, by reading a comment you can understand the purpose of code much faster then by just going through the actual code.
Explanation:
vote and apply thanks
Similar questions