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

What is the primary geographical feature of Venezuela?
what is 60 percent of the product of one-twelfth y and two-thirds z
Caleb has a 860-kilogram car sitting in his back yard, gathering rust. If Caleb could launch the car deep into outer space, the car's mass would then be _____
How do you find the measure of interior angles?
Classify each number as rational or irrational 1. 11/3 2. √48 3. 6.25 4. 0.01045 5. √16/81 6. √3/16 7. 0.42 8. 16π
The lyrics for west side story were written by _______.
It took Julio 18 minuets to compleat 3pf the chores on his to do list. If Julio spent the same amount of time on each chore, how long did it take him per chore?
The two dynasties that made up chinese golden age were _____
Ibf consultants, llc provides consulting services in privacy and theft deterrence solutions. another client owns a large number of expensive electronic devices
Mrs. pedersen lives in a nursing home that allows its residents to make choices about their daily activities and encourages them to make decisions that affect t