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

Work out p if r =3 and t=4 P=2r+3t
Christopher wants to join a basketball team but each member has to pay a $300 yearly membership fee. The organization will allow Christopher to pay $15 monthly
PLEASEEEEE HWLP 10 points hehehheh
Learning Task 1 Do the following: 1. Statement: It is an eagle, it's a bird. Write the following in words: (a) P-9 (b) 4-P (c)P9 Are all statements true? If no
Who's really excited for My Hero Academia Season 5!!!!!!!!!!!!!!!!
What is the volume of a sphere of 13cm? using 3.14​
8x=2 what is the value ofx
Hi!!! Please explain what the Law of Conservation Of Mass is with the following terms: Chemical Reaction, Reactant, Product, Balanced, Coefficient, and Subscrip
Who has been granted legislative powers in the U.S. government?
A production department's output for the most recent month consisted of 14,000 units completed and transferred to the next stage of production and 14,000 units