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
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories