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

DUE IN 1 MINUTE PLS ANSWER QUICK ...A sound wave moving with a speed of 1500 m/s is sent from a submarine to the ocean floor. It reflects off the ocean floor an
What are the solutions to the equation x^2-4x-5=0?
In chapter 7 bankruptcy , a debtor
Prove that the values of unknown are correct. I need the answer fasttt. 6x -10 =20.​
Porque es la mejor solución de la pobreza?
Write a function that accepts a positive random number as a parameter and returns the sum of the random number's digits. Write a program that generates random n
Solve the expression for a=12, b=6 and c=3 Look at the picture will give Brainlist !
why was brutus a pariot
A researcher posts a newspaper advertisement offering $20 in exchange for participation in a short study. The researcher accepts the first five people who respo
Santos went on a bike ride of 90 miles. He realized that if he had gone 24 mph faster, he would have arrived 12 hours sooner. How fast did he actually ride? Nee