hamptonhannah1219 hamptonhannah1219
  • 01-01-2021
  • Computers and Technology
contestada

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:

Respuesta :

yesyesufcurs yesyesufcurs
  • 02-01-2021

Answer:

Output: yes

Explanation:

First if statement is satisfied, since numA==2, so yes is printed.

The elif statement is skipped altogether, since elif statements are only evaluated, when the statement above if false, which it is not.

Answer Link

Otras preguntas

Jeff is scuba diving while on vacation. Yesterday, he drove to -13 feet. Today he plans to go 4 times as deep. How far is Jeff planning to dive today
52.5% of what number is 105​
Read, look at the image, and choose the correct option. Student pointing and telling another student something –Sofía, la clase de geometría empieza a las 12 de
NO I LOST MY FRIENDS! WEEB AND THE OTHERS ARE YOU OUT THERE?
Read the excerpt from chapter 7 of Night. Meir Katz remained on the train. The last day had been the most lethal. We had been a hundred or so in this wagon. Twe
can you filling in the missing information ​
1. Just like in Egypt, the women of Kush were not respected or given any rights. True False
Solve for x, 5(x-10)=20
PLEASE HELP ASAP Create a matrix for this linear system
There are 5 roads from Albany to Benson, 6 from Benson to Crestview, and 3 from Crestview to Dunlop. How many different ways are there to travel from Albany to