What we use for a comment in python // or #? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What we use for a comment in python // or #?

python

30th Jul 2017, 9:00 AM
Ergest Zykollari
Ergest Zykollari - avatar
3 Answers
+ 1
To add comments in python, use #. This works perfectly everytime. Vote up if my answer helps.
30th Jul 2017, 9:12 AM
Mudit Jhawar
Mudit Jhawar - avatar
+ 1
Thank you
30th Jul 2017, 9:13 AM
Ergest Zykollari
Ergest Zykollari - avatar
+ 1
You can choose between two options: # an hash symbol at the beginning # for each one-line comment # or more than one to do multi-line comments or directly """ for multi-line comments, just put three double quotes at the beginning and the end of the whole comment """
30th Jul 2017, 4:31 PM
iTz BHs
iTz BHs - avatar