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

Anna is hiking in a canyon. The inequality statements compare the elevations of the hiking trail at three different points. –21 ft < –18 ft −18 ft < 10 ft
If you were giving a speech on illiteracy in the united states which of the following points would you discuss last
Chemistry help please?
Help with this question
columbus made his discovery in 1492. what century was this
one example of symbolism in the poem highwayman
Read the following question spoken by Helena very closely: "Happy is Hermia wheresoe'er she lies For she hath blessed and attractive eyes. How came her eyes so
List the probabilities for each in the order that I list the events in. 1. Flipping a tails or drawing or king 2. Drawing a king or drawing a heart
What is the measure of the angle formed by the hands of a clock at 4:00
1.) Alexander jumped off a cliff into the ocean in Acapulco while on vacation. His height as a function of time could be modeled by the function h(t) = -16t2 +