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

The tip of a steel pick looks like A. a nail. B. a steel staple. C. an arrowhead with serrated edges. D. a toothpick.
List the multiples of 8 (up to 100)
Could you give me five equations that equal 58
Compare Dobereiner’s triads to the modern periodic table. What aspects of his idea agreed with the modern table and what aspects did not
How did tools improve during the old stone age?
What percent of 88 is 33
what economic and political conditions following world war 1 encouraged dictatorships
Harold stores 10,656 pounds of grain 24 cattle each row eats about 12 pounds of rain each day how many days with the food supply last
How did tools improve during the old stone age?
what is 3\15 in its simplest form