A

Admin • 833.24K Points
Coach

Q. What is the output of the following code?

Code:
x = True
y = False
z = False

if x or y and z:
print "TANMAY"
else:
print "tanmay"
  • (A) TANMAY
  • (B) tanmay
  • (C) The code does not display anything
  • (D) None of the above
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

(True or False) evaluates to True.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.