+ 2
what is a general purpose multi line comments python lacks?
2 Réponses
+ 1
Hi
How can Hack Facebook?
0
Python developers often make use of the comment system as, without the use of it, things can get real confusing, real fast. Comments are useful information that the developers provide to make the reader understand the source code. It explains the logic or a part of it used in the code. Comments are usually helpful to someone maintaining or enhancing your code when you are no longer around to answer questions about it. These are often cited as a useful programming convention that does not take part in the output of the program but improves the readability of the whole program.
However, there is no concept of multiline comments in Python. But it can be achieved by the following ways.
Ways to achieve multiline comments in Python
Consecutive Single line comment
Using Multi-line string as comment