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

I have a Brainliest
If you have a budget of 12% of your monthly income for groceries how much can you spend on groceries if you are 950 bi-weekly
A unit of measurement that describe the rate that electricity flows through a wire is an
Marissa bought 2 and 1/2 gallons of orange juice to make punch how many quarts of orange juice did Marissa Buy
A cake is cut into 8 equal pieces and each pieces has an Arc length of 6.28 find the diameter
What does the number 666 mean in the bible?
What are the solutions for x when y is equal to 0 in the quadratic function. Y=x^2-25A. x = 5 B. x = −20 or x = 5 C. x = 5 or x = −5 D. x = 10 or x = −15
A pun is a literary work that aims to correct something by ridiculing it
what is the answer i can’t figure this one out?
Arab forces most likely fought with the United States in the Gulf War because