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 man on a bicycle of total mass of 10kg has a Velocity of 2 ms.' He Paddles faster for 5 seconds and the velocity Increase to it 4ms Calculate the average forc
give a well-detailed explanation of the importance of the amniotic sac to the mammalian embryo
what are the 7 layers of cyberspace?​
Help me with this math problem
A 3,204 kg tree positioned on the edge of a cliff 247 m above the ground breaks away and falls into the valley below which is considered zero potential energy.
Please answer all of the questions and if u are correct I will give u brainliest ;) xoxo <3
On a coordinate plane, a right triangle has points A (negative 5, negative 6), B (negative 5, negative 2), C (negative 2, negative 2). Examine the right triangl
What is wrong with the sentence . After giving birth to six puppies, I anxiously watched over my sleeping dog.​
A comparison that does not use "like" or " as" is known as ... hyperbole onomatopoeia metaphor simile
5. Calculate the area if the force is 368N and the pressure is 28Pa..