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

a triangle is a polygon with (blank) sides and (blank) angelsn
The elements found in Group 2A, from top to bottom, include beryllium, magnesium, calcium, strontium, and barium. Which of these elements has the highest electr
Which are organisms that are so small that they can only be seen through a microscope
what is the vertical asympote of f(x)=x x-7 x over x-7
Identifying Jackson's error(s)
Employees don't have to comply with PPE requirements if they feel the PPE isn't necessary for the particular task they performed. True or False?
a students body temperature is 98. 6 degrees Fahrenheit. what is the temperature on the Celsius scale
Whether you live in an african village or a european city, fast-paced music seems ________ than slow-paced music
how to show work 120÷10
when did Athens become a democracy