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

What is the range of {(1, 2), (3, 4), (5, 6)}?
Which number line shows 1/3 and it's opposite
g5-h3 if g=2 and h=7 solve expression
Paloma can run the 100 meter dash in sixteen And one fith .savan best time is 19.8 seconds .how much castre is Paloma than savannah
A scientist wants to raise the temperature of a 0.10-kilogram sample of glass from –45°C to 15°C. How much heat energy is required to produce this change in te
Write the word form for 2.251
What is the value of (-4.5) (-8.25) ? Please!
what is 3/5 plus 5/8?
whats the answer to -12(4/3-1)
Charlie has x state quarters. Ty has 3 more quarters than Charlie has. Vinnie has 2 times as many quarters as Ty has. Write and simplify an expression to show h