Q. What is the output of the following code?
Code:x = 5
y = 2
if x > y:
print("x is greater than y")
else:
print("y is greater than x")
β
Correct Answer: (B)
x is greater than y
x = 5
y = 2
if x > y:
print("x is greater than y")
else:
print("y is greater than x")
You must be Logged in to update hint/solution