CBSE Class 10 Computer Applications Question 8 of 31

Python Revision — Question 6

Back to all questions
6
Question

Question 6

What is the output of following code ?

print "8 >= 8"
  1. 8 >= 8
  2. False
  3. True
  4. Error
Answer

8 >= 8

Reason — Since 8 >= 8 is enclosed in quotes, it is treated as a String and printed on the output terminal as it is.