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

Making a home inventory (select all that apply) Question 3 options: A: will decrease your premium by 5%. B: will help you get your claim settled faster. C:
look at the image for the question
How does population density differ among coastal areas, highlands, drylands, cold lands, and hot lands within the United States?
In a chemical equation, the symbol that means "dissolved in water" is _____. (s) (l) (aq) (g)
What is "Hi, How was your day doing" In Spanish? Thank you to the people who answer!
Can someone help me with this question?
Which of the following best describes what would have to change to transform an authoritarian government into a theocracy?
Is this a parallelogram​
1. Draw the condensed structural formula of sodium benzoate showing all charges, atoms including any lone pairs in the side chain functional group, and all sigm
Oak street and elm street run parallel to each other. When main street intersects them, it forms exterior 8, measuring 60. What is the measure of 1?