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

please help i will give brainliest
Mario is making 12 dozen cookies. Each dozen requires 3 5 cup of flour. How many total cups of flour does Mario use?
How do milestones help a project manager ensure that a project goes smoothly? A. By showing whether the project is progressing as planned B. By showing whether
Which two factors helped lead to the collapse of the Soviet Union? A. Gorbachev took a stance of nonintervention in communist bloc uprisings. B. Communist bloc
18 lb. 6 oz. divided by 7
Who is depicted in the image below? ​
b) How many more 18-year old students than 12-year old students spent between 25 and 35 mins on social media?
A graph shows the number of texts, numbered 10 to 100, on the x-axis, and the total cost in dollars, numbered 3 to 27, on the y-axis. A straight red line with a
How to recycling planet earth
How many times longer is the wavelength of a sound wave with a frequency of 20 waves per second than the wavelength of a sound wave with a frequency of 16,000 w