A

Admin • 833K Points
Coach

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")
  • (A) A is greater
  • (B) B is greater
  • (C) Both A and B
  • (D) None of the mentioned above
  • Correct Answer - Option(B)
  • Views: 32
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.