Q. What will be the output of the following Python code?
Code:a = 13
b = 15
print("A is greater") if a > b else print("=") if a == b else print("B is greater")
β
Correct Answer: (B)
B is greater
a = 13
b = 15
print("A is greater") if a > b else print("=") if a == b else print("B is greater")
You must be Logged in to update hint/solution