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

Please help me!!!!!!!!
A scientist studying where eastern king snakes lay their eggs observes that females lay eggs under pieces of old tin in the sunshine during cold years and under
Can someone help me idk which one it is ?? A B C D
There are exactly 60 seconds in a minute, there are exactly 60 minutes in an hour, there are exactly 24 hours in a mean solar day, and there are 365.24 solar da
NEED HELP! Also, please explain a bit of why you chose the answer, simply because I do not understand it.
A bee lands on a random point on a rulers edge find the probability that the point is between 1 and 9
Why did henry david thoreau build a cabin on walden pond? a.to recover from a debilitating nervous breakdown b.to conduct an experiment about living in solitude
for what kind of work would you use a block plane?
What happened to them?In the poem cold within
What did many people believe was the cause of the Black Death? answer is A.a punishment for sinful humans