MemberSeptember 10, 2020 at 4:43 am
We can use
/* */ for using comments in SQL
// are used in Java
# as comments in python
a comment is used as a free text which is used by the human to write his understandings of the code. But a comment is not understood by computer.
MemberSeptember 10, 2020 at 6:51 am
# is used for Single-line comments in python
<p style=”text-align: left;”>
”'(Triple quotes) are used for Multi-line comments in python
output: Hello World
MemberSeptember 11, 2020 at 5:40 am
# is used for single-line comments in python.
”’ ”'(triple single quotes) or “”” “””(triple double quotes) are used for multi lines of comment block
Comments are used to understand the code which is not understood by computer. These are very useful. By these comments anyone can understand that code easily.
Log in to reply.