The expression x + y > z
evaluates to True
in this case. Here's the breakdown:
x + y
calculates to15 + 10
, which equals25
.- Then we compare
25 > 5
, which is indeedTrue
.
So, if you run the code, it will print True
.
x =15
y = 10
z = 5
print (x + y > z)
1 answer
The expression x + y > z
evaluates to True
in this case. Here's the breakdown:
x + y
calculates to 15 + 10
, which equals 25
.25 > 5
, which is indeed True
.So, if you run the code, it will print True
.