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

Solve: m+2m+3 if m=12
Barry swam three times as many laps as George plus one more lap. Barry swam 25 laps. how many laps did George swim?
Use gcf and the distributive property to write equivalent expressions in factored form for 4d+12e
1/4 Times what number equals 9
Jessica mixed 1 can of frozen fruit punch with 2 cans of water. Graham mixed 2 cans of frozen fruit punch with 6 cans of water. Who has a stronger-tasting drink
simplify (x^3+5x^2+5x-2)+(x+2)
what times 6 equals 24
What is labor in economics? Labor is not considered a part of economics. Labor is one of the three resources of production, like land or capital. Labor is affec
Which of the following represents "eight times the difference of a number and seventeen is thirty"? 8N - 17 = 30 8(N - 17) = 30 8N - 17N = 30
What is one job of RNA? A. unraveling DNA B. manufacturing nucleotides C. carrying genetic information D. giving shape to chromosomes.