370,168 views
25 votes
25 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

User Bengie
by
2.6k points

1 Answer

11 votes
11 votes
Since the compiler reads top down, it should print “yesno” because they are both true
User Taleinat
by
3.0k points