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

f(x) = x2. What is g(x)?
A med aide may a) Never insert a suppository of any kind b) Insert a nonmedicated suppository, such as a glycerin suppository c) Insert a suppository with proof
What type of creation story describes how earth originated from water
help meeeeeeeeeeee today
By the late 1600s, settlers in the middle colonies were
) After basketball practice, Courtney spent extra time working on free throws. Overall, she made 3 of her 5 shots. What percent of her total shots did she make?
2. What weakness and what strength is coronavirus exposing our society ?
..............................
Find the average rate of change of g(x) = 2x^3 - 5 from x= -4 to x= 2
if a point is chosen inside the large circle what is the probability that it will also be inside the small circle?