Home / Programming MCQs / Python MCQs / Question

T

Tanmay • 2.43K Points
Master

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
Explanation by: Tanmay
(True or False) evaluates to True.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.