Computer Applications
What is the output of following code ?
print 8 >= 8
- 8 >= 8
- False
- True
- 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
2 Likes