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

1. If you invest $500 in an account that earns 3.5% annually compounded monthly. How much interest will you earn in your account over 5 years? a $595.47 b. $594
What character type is Steven in this paragraph? A. Antagonist B. Protagonist C. Foil D. Round
hey can anyone solve 2x+32=45
A. Find the complement of the angle shown.B. Find the supplement of the angle shown. Show all your work.Welp UwU
Given f(x)= 10-2x, find f(7). -4 3 07 0 56
How to graph this slop (put a pic if u can )pls help due at 11
can someone complete it all
Are the subjects in this reading passage being compared or contrasted?
PLEASE ANSWER ASAP TwT What is the value of the expression? 5^2−(−3)^0 4 22 ​ 24 ​25 10 points ^.^ Will report answer if not relevant to question above
the next algebra test is worth 100 points and contains 35 problems. multiple-choice questions are worth 2 points each and word problems are 7 points each. how m