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

You can enter the following things in cells formulas only text only text, formulas, functions, numbers formulas and functions NO LINKS!!!!!!!!!!!!!!!!!!!!!!!!!!
Calculate the amount of heat needed to convert 230.0 g of ice at -10.0ºC to liquid water at 10.0ºC.
Members of a softball team raised $1405.25 to go to a tournament. They rented a bus for $822.50 and budgeted $27.75 per player for meals. Write and solve an equ
What is 2+3 times threehundred
f(x) = –3x2 – 7x Find f(7)
tìm và phân tích biện pháp nghệ thuật trong câu họ nói anh chàng khốn nạn giống kiểu như nhà quê trói chó để làm thịt vậy
what is the domain of function f (x) =5 √x+9 a. (-9, ∞] b. [-9, ∞) c. [-9, ∞] d. (-9, ∞)
Write an equation for the line that passes through the given points (2,3), (3,7)
Need help asp !! How does the poem "I too, Sing, America use either pathos, logos, or ethos to make an appeal to readers? Use evidence from the text to support
Which descriptions from the list below accurately describe the relationship between A ABC and A DEF? Check all that apply. 120" B 3 420 22" -C 6 390A 7 38" 10 А