Which symbol begins a single-line comment in Python?
In Python, a single-line comment begins with the # symbol.
Example:
# This is a comment
print('Hello')
Python ignores the comment when the program runs. The Python documentation identifies # as the symbol used for comments.
Therefore, the correct answer isB. # pound symbol.
Idella
9 hours agoAudry
6 days agoGlenna
11 days agoCarlton
16 days agoJean
2 months agoMel
2 months agoLelia
2 months ago