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 length of a picture is 18.25 inches shorter than twice the width. If the perimeter of the picture is 119.5 inches, find its dimensions.
Consider a binomial experiment with n = 8 trials where the probability of success on a single trial is p = 0.30. (For each answer, enter a number. Round your an
need help asap willing to give a lot of points!
How to do this please?️​
March 8, 2017, one U.S. dollar was worth 66.79 Indian rupees. a) On that date, how many dollars was 110.66 rupees worth? Round your answer to the nearest hundre
the answer to this asap please!
Which of the following statements is true?
Bob has saved $535 each month for the last 3 years to make a down payment on a house. The account earned an interest rate of .34 percent per month. How much mon
A part of a line that starts at one endpoint and extends forever in one direction is a(n) A. angle B.point C.line D.ray
give a well-detailed explanation of the importance of the amniotic sac to the mammalian embryo