+ 2
What is the function of this 3 comments ??
1. // 2. <!-- --> 3. /* */ Please reply...
14 Antworten
+ 7
😄 Jeff's JK 😄 Yes "# "is used as single line commenting in python
+ 7
You can use docstring (""" """)for multiple line comment in python like this
"""Happy
New
Year """
+ 5
If you are curious enough to know every type of comments of every programming languages (not all). This article may answer you.
https://en.wikipedia.org/wiki/Comparison_of_programming_languages_(syntax)
+ 5
Ohh...
Thank you for the answer BeegCat, Alphin K Sajan, 《 Nicko12 》, Simba...
😊 Thank you 😊
+ 3
《 Nicko12 》 has put an end to this discussion ...lol
😄 Jeff's JK 😄 Kindly use the search bar before posting Questions as i think you'll get enough info on typing "comments" in the search bar...
+ 2
😄 Jeff's JK 😄 You've probably saw them in an html document.
Where <!-- --> is used to comment HTML and /* */ is a multiline comment for CSS and JavaScript.
// is a single line comment for JavaScript code.
All comments have the same purpose, to be able to write something for the programmer which will be ignored by the browser (or compiler or interpreter).
+ 1
Is there any other type of comment ??
+ 1
Anymore type of comment??
+ 1
And what is the mutiple line comment in Python ??
+ 1
Ok...
+ 1
Using docstring multi line comment can be written in python
"""
"""
+ 1
Oh...Thank you for the answer Yug Kalola...