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

How did new industrial technologies influence the course of world war i?
Analysis questions for b.what changes occurred in both forms of the moth over these ten years?
(8n+1)(6n-3) please solve in quadratic formula
Please someone help me with this
What is the elapsed time
It takes 10 workers 24 hours to do a job. Fill in the chart.
Some puritans wanted to separate from the Church of England
What did president wilson's wife make sure was on the white house lawn?
Helppppp how do u do this????
Lucilla wondered what the average weight of each orange was in a five-pound bag of oranges. she purchased six bags and calculated the average weight for a singl