1(vii)
Which of the following character is used to give a single line comment in Python?
- (a)//
- (b)#
- (c)!
- (d)/*
Show SolutionHide Solution↓
#
Reason — In Python, the hash symbol (#) is used to write a single-line comment, which is ignored by the Python interpreter during program execution.