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

The traits of populations in the forest ecosystem have changed over time. What caused the traits to change?
in a geometric series t1=23,t3=92 and the sum of all of the terms of the series is 62813. How many terms are in the series
What is the state at which a net force is zero called
There are 5 red balls,6 white balls and 7 green balls in a box.If one ball is taken without looking,what is the probability that it is white?
The accompanying frequency table indicates the grades on the math midterm in Ms.Dennis' class. In which interval does the median of the date lie?
how did martinique gain independence
which state capital is north of 40 degrees north latitude: Frankfort, denver, salt lake city, or columbus?
What Is the Function of Alliteration in Literature?
The accompanying frequency table indicates the grades on the math midterm in Ms.Dennis' class. In which interval does the median of the date lie?
n^2+7n+15=5 show work please