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 help!!! (will give brainlest to correct answer!) Multiply. [−12⋅47]⋅[−14⋅(−0.1)] What is the product? Enter your answer in the box.
In which pair is each substance a mixture? A air and water B limewater and water C quicklime and limewater D sea water and air
Find juans debt to income ratio if his monthly exspenses are 900 and his monthly saary is 1200
Choose the definition of the term that completes this sentence: Managers should understand ________ because they affect how people perceive and act within the o
Suggest why root hair cells are long and thin and not short and stubby?
Do you need to be good in math to become the president of the United States?
Does the table below represent a function? Explain why or why not.
It is the smallest instrument in the brass family it usually plays the melody of the music
How many and what is the solution to 2(x − 1) + 3 = 3x − (x + 4)?
Why did pharaohs need to be buried in large pyramids?