asked 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!!!!!!!!!

asked
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.

answered
User RAthus
by
7.9k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.