Robotics & Artificial Intelligence
Write and evaluate the following expression in Python:
(a + b > c) and (a - b == -a + b), for a = 2, b = 3, c = 4
Getting Started
2 Likes
Answer
(a + b > c) and (a - b == -a + b)
= (2 + 3 > 4) and (2 - 3 == -2 + 3)
= (5 > 4) and ( 2 - 3 == -2 + 3)
= True and (-1 == 1)
= True and False
= False
Answered By
1 Like