Computer Applications

What is the output of following code ?

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

Python Funda

2 Likes

Answer

True

Reason — a >= 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'.

Answered By

3 Likes


Related Questions