7.6k views
16 votes
What is the output of this program?

numA = 2
numB = 3
if numA == 2 or numB == 2:
print("yes")
elif numA == 2 and numB == 3:
print("no")
Output:




PLEASE HELP ME PLEASE

1 Answer

4 votes
Since the compiler reads top down, it should print “yesno” because they are both true