230k views
0 votes
What's the value of this Python expression? ((10 >= 5*2) and (10 <= 5*2))

1 Answer

4 votes

Answer:

1 (true)

Step-by-step explanation:

10 == 10 is valid=> 10 >= 10 is valid => 10 >=(5*2) is valid

10 == 10 is valid=> 10 <= 10 is valid => 10 <=(5*2) is valid

=> ((10 >= 5*2) and (10 <= 5*2)) is valid => Return 1 or True

User Rypox
by
4.1k points