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

helppppp plzzzzzzz steppsss iff posiblleeee, will mark brailest!!!!!!!!!!!!!!!!!!!!!!!!!
SOMEONE PLEASE HELP ME ANSWER THIS IM STUCK
I need thes words to be rearranged. Nilegnifac Mresceboeinl Rsiomagsrlr
Can someone give me the letter to all answers 1-4 or at least one 3
Assessment Directions: Read each item carefully. Use a separate sheet of paper for your answer. Write only the letter of the correct answer for each question.1.
In an examination evaluation expert system, the _____ component of the expert system is responsible for stating why a loan applicant was approved or rejected.
Why do you think Charles Hooper’s appointment as Assistant National Sales Manager is considered to be a tribute to Duke?No spam! This question is from the story
Joshua is 1.45 meters tall. At 2 p.m., he measures the length of a tree's shadow to be 31.65 meters. He stands 26.2 meters away from the tree, so that the tip o
How does the Appalachian Mountains important to the US development
Nicodemus was a ruler of the: Jews publicans Romans Gentiles