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
4.0k 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
4.2k points