174k views
2 votes
What is the output of this program?

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


PLEASE HELP ME!!!!!!!!!

User Asicfr
by
7.9k points

1 Answer

5 votes

it will print no, because B = 3 and not 2 so it will skip the print yes line.

User RAthus
by
7.9k points
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