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

please answer thankyou in advanced
In the Great Plains of the U.S., tornadoes are common in the summer. This is because
thanks to piano4life now please help me with this :D
how do you say “i am 14 years old” in german?
In two or more complete sentences, describe a scenario where human activities are related to an increase or decrease in blodiversity in an ecosystem. Write your
Which of the following best explains what caused so many Mormons to migrate west into what is now Utah during the mid-1800s? * A. The farmland that the Mormons
3.6 Make innovative suggestions on how you could instill healthy environmental valuesin communities.​
At what temperature do NaNO3 and KNO3 have the same solubility?
Drag the tiles to the correct boxes to complete the pairs. James is creating a website for a firm that sells office IT hardware. He uses certain elements to aid
I have a project about fractions. Its the last day of school. Pls answer this question. What fraction is less than 1/2?