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

Help me!!! #29 and #30
Why did Germany strongly oppose the terms of the Treaty of Versailles? The terms outlined severe economic consequences for Germany. The United Nations had not
Find the zeros of g(x)=x2+5x−24g
Read the sentence. pet canaries need large cages, wooden perches, some fresh water, and keep out of cold. which phrase should be revised for a more parallel sen
Identify the horizontal translation of the parent function. step by step y=(x-4)^2
The earth is divided into __________ meridians. A : 24 B : 90 C : 180 D : 360 "UpVote my question"
how do clauses help improve your writing?
Name reasons why school systems news to be changed for students. Need a quick answer
Fin each unit rate. Determine which is lower. Ingredient C: 1/4 cup for 2/3 serving Ingredient D: 1/3 cup for 3/4 serving
Brad is testing three solutions with litmus paper. after dipping the litmus paper strips in the solutions, he observes two papers turning blue and one turning r