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

Who was the president who had false teeth made out of rhinoceros ivory
1) x-2,18mai mic sau egal3,82 2) x-13,4=9,06 2,3orix=3,45 x-1,5=7,3 3) media aritmetica a doua nr este =4,6 a=5,5 b=? 4) a+b
i need alot of help.
What can you learn from Michael Jordan that might help you in your own life?
Describe two environments in which minerals form. List a mineral that is formed in each environment
Cumulus and cumulonimbus clouds are most likely to be formed by what
Llena los espacios en blanco. Tus hermanos y tú son los _____ de tus padres.
Write in standard form 4=-12y-8x -7+3y=-x
Which man ruled over Mexico during 1920
What's the difference between mining tailings and spoils?