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

How do conservatives people treat boys and girls differently? State a few ways.​
Evaluate 8a + 3b - 10 + c^2 when a = 2,b= 5, and c = 4.
please help im stressing :(((( (what is Danielle mistake in this problem )
The sum of the measures of the angles of a triangle is 180. The sum of the measures of the second and third angles is five times the measure of the first angle.
How did the great awakening change America
The many physical changes that occur during puberty can affect your emotional, mental, and social health. A. True B. False
is there any possibility of medium and large industries in Nepal? present your views​
What does blood contain when it flows into the heart from the body? little oxygen and a lot of carbon dioxide a lot of oxygen and little carbon dioxide a lot of
Which European country had control of this region?
Which type of bacteria endotoxins