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

Multiply the following equation
what is a brief and often humorous statement of truth or opinion such as a watched pot never boils
Que le gusta mucho a lola
which two types of design got their starts during the Victorian era select all that apply∆ Architecture∆ Fashion∆ Packaging∆ Marketing
Mesopotamians used the plow to make their farmland more productive. Which of the following was necessary for the use of the plow? A. the domestication of oxe
Kennedy implies that starting a nuclear war would be insane. Why?
The Rumpart family is building a new room onto their house. The width of the new room will be 16 feet. The length of the room will be 4% greater than the width.
Read the two conclusions to Cinderella. Conclusion A: “This is not the true bride,” said he to the father; “have you no other daughters?” Then Cinderella took
electricity powered home and factories. How did electricity change Americans' lives
Find the roots of the equation below. X^2 - 6 + 9 = 0