What will the output of the following statement: print(not x or not y and z (if x = 2, y = False and z = False) ..[in python program]
Answers
Answered by
0
Answer:
x=True
y=False
z=False
if x or y and z:
print("yes")
else:
print("no!")
this is how i thought it is evaluated
x or y and z
True and z
that is. True and False
results to False
where am i wrong?
Similar questions