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 parking garage bases its prices on the number of hours that a vehicle parks in the garage.The first two hours cost $2 per hour, between two hours and six hour
Five times a number decreased by 2 is 4, find the number.
There were 169 tickets for a major league baseball game. The lower box tickets cost $12.50 and the upper box tickets cost $10.00. The total amount of money spen
Josh rented a truck for one day there was a base fee fee of $12 and there was additional charge of 8 cents for each mile driven the total cost (c) for driving
Choose ALL correct answers (1, -3) (4, 1) (6, 3) (2, -2)
The monthly cost of water use is a linear function of the amount of water used (HCF). The cost for using 16 HCF of water is $39.04, and the cost for using 44 HC
Differentiate between an organic combustion reaction and an inorganic combustion reaction.
Solve each equation. |x+5|=-3
Maria is going to purchase cranberry juice and lemon-lime soda for a new fruit punch recipe. The recipe calls for 3.5 times as many bottles of lemon-lime soda a
PLSS HELP MEEE!! It'll be very appreciated