CBSE Class 10 Computer Applications Question 7 of 31

Python Revision — Question 5

Back to all questions
5
Question

Question 5

What is the output of following code ?

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

True

Reasona >= b compares a and b and returns true if a is greater than or equal to b, else returns false. Since 8 is equal to 8, the given expression results in 'true'.