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

having troubles with inequalities.. 3.8x + 14.5 < 32
what is the sum of 7/10 and 6/100
which trinomial is equivalent to (3x-1)(x+4)
what is the sum of 7/10 and 6/100
Explain what is the same about two fractions that are like fractions
what is the sum of 7/10 and 6/100
which trinomial is equivalent to (3x-1)(x+4)
what is the sum of 7/10 and 6/100
what is the sum of 7/10 and 6/100
what is the sum of 7/10 and 6/100