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

In order learning,Who is responsible for checking to make sure assignments are turned in ?
Please find the perpendicular line slope equation please! Thanks!
value of 2(X+Y)- (X-Z) IF X=2, Z=-3 Y=1
SELECT ALL THAT APPLY Choose all that are sources of funding for social services in a society 1. income tax collection 2. service fees collection 3. traffic ti
70 = -5(-2 + x) Two step equations I’ve done pretty good so far and this is my last question, please help soon
What is the measure of
please help on this one?
Norma kicks a soccer ball with an initial velocity of 10.0 meters per second at an angle of 30.0% if the ball moves though the air for 3.2 seconds what’s the ho
Please help!!!!!!!!!!!!!
Son proporciones. cual es el resultado de :x/2,5=y/5 si x+y=6