Which of the following is a valid Python comment?
-
A
// comment
-
B
# comment
Correct answer
-
C
/* comment */
Correct answer
B. # comment
9 views
Explanation
Comments start with #. They are ignored by the interpreter and used for explanation.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ