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

( 43 - 8 ) × 2=____×5 What is supposed to be in the blank??!!
List the 3-membered subsets of the set {1,2,3,4,5,6).
When was George Washington born
Explain how people in India and Southeast Asia have adapted to the monsoon climate.
Which excerpt from the paragraph is the best counterexample of the theme that disasters can cause everyday people to do heroic things?
a pitcher contains 11.25 cups of iced tea. You drink 1.5 cups of the tea each morning and 0.75 cup of the tea each evening. When will you ran out of iced tea?
Secretary of State John Hay promoted _______, in which all nations agreed to let the others trade with China. Question 3 options: the Open Door Policy the Europ
How do i do KCF ? for 6th grade ;~;
As a _____, Jesus Christ speaks to men for God; as a ______ He speaks to God for men. priest prophet king priest prophet king
Let the set T be given by T = { x in the reals | x^2 < 2}. Describe maximum, minimum, supremum (least upper bound), and infimum (greatest lower bound) for T