CBSE Class 11 Informatics Practices Question 27 of 102

Python Programming Fundamentals — Question 4

Back to all questions
4
Question

Question 4

Single line comments in Python begin with ............... symbol.

  1. #
  2. "
  3. '''
  4. %
Answer

#

Reason — Single line comments in Python begin with # symbol.

For example,

x = 10
y = x + 100 #value of x + 100 is assigned to variable y
print(y)