What is the function of this 3 comments ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the function of this 3 comments ??

1. // 2. <!-- --> 3. /* */ Please reply...

1st Jan 2021, 3:30 AM
Carbon dioxide
Carbon dioxide - avatar
13 Answers
+ 7
😄 Jeff's JK 😄 Yes "# "is used as single line commenting in python
1st Jan 2021, 3:44 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 7
You can use docstring (""" """)for multiple line comment in python like this """Happy New Year """
1st Jan 2021, 4:00 AM
Simba
Simba - avatar
+ 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)
1st Jan 2021, 4:03 AM
noteve
noteve - avatar
+ 5
Ohh... Thank you for the answer BeegCat, Alphin K Sajan, 《 Nicko12 》, Simba... 😊 Thank you 😊
1st Jan 2021, 4:04 AM
Carbon dioxide
Carbon dioxide - avatar
+ 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...
1st Jan 2021, 4:04 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 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).
2nd Jan 2021, 10:14 AM
Lakshay
Lakshay - avatar
+ 1
Is there any other type of comment ??
1st Jan 2021, 3:38 AM
Carbon dioxide
Carbon dioxide - avatar
+ 1
Anymore type of comment??
1st Jan 2021, 3:46 AM
Carbon dioxide
Carbon dioxide - avatar
+ 1
And what is the mutiple line comment in Python ??
1st Jan 2021, 3:53 AM
Carbon dioxide
Carbon dioxide - avatar
+ 1
Ok...
1st Jan 2021, 4:06 AM
Carbon dioxide
Carbon dioxide - avatar
+ 1
Using docstring multi line comment can be written in python """ """
1st Jan 2021, 1:13 PM
Yug Kalola
Yug Kalola - avatar
+ 1
Oh...Thank you for the answer Yug Kalola...
1st Jan 2021, 1:26 PM
Carbon dioxide
Carbon dioxide - avatar