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

find the equation (in terms of x) of the line through the points (-2,1) and(2,9) Y=
i need help with problem 1
Each side of the square below is 8 inches. a triangle inside of a square. the top of the triangle divides a side of the square into 2 equal parts of 4 inches. t
Your first six-month auto insurance premium was $629.00. Based on your driving record, your renewal premium is $786.25. What percent increase did you see in you
The client has experienced a stroke and her speech is now garbled, The client may have experienced damage to which of the following
please help me there is a screenshot attached
Describe these points with a double inequality
Las actividades en el centro!! Combina frases de las dos columnas con la forma correcta del verbo para describir las actividades de estas personas en el centro
Calculate the pOH for a solution with a hydroxide ion, (OH-) of concentration of 6.49 X 10-11 M. Calculate the pH. Note: the answers should have three significa
Trey will attend a -year college, and he is planning his budget. Answer the following. (a) Below is an estimate of all his expenses and sources of funding for h