Which of the following symbol is used to add comments in the Python language?
Show answerHide answer
Correct answer: (B) #
Explanation
In Python, # starts a single-line comment; everything after it on that line is ignored.
Correct answer: (B) #
Explanation
In Python, # starts a single-line comment; everything after it on that line is ignored.
This is question 156 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.