In Python, which symbol is used for comments?
-
A
//
-
B
#
Correct answer
-
C
/*
-
D
--
13 views
Explanation
The # symbol is used for single-line comments in Python. Source: NBF StudyHub, Chapter 1 Important MCQs, Q1.
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