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.
Jean
17 days agoMel
22 days agoLelia
27 days ago