175k views
6 votes
What is the output of this Python code?

def guess(a, b, c):
if a > b and a < c:
print(True)
else:
print(false)
X = 45
y = 31
z = 78
guess(x, y, z)

User Mr Shark
by
5.8k points

1 Answer

5 votes

Answer:

True

Step-by-step explanation:

in function guess:- a = x; b = y; c = z

so 45 > 31 AND 45 < 38

since both the stements are true

True is printed

User Mikeagg
by
6.1k points