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

glycerol and other organic compounds with an -ol ending is called
Which will result in a difference of squares? (–7x + 4)(–7x + 4) (–7x + 4)(4 – 7x) (–7x + 4)(–7x – 4) (–7x + 4)(7x – 4)
Please make my life easy and do this
According to Atticus, which of these should be immune to what other people think?
explain why the characters in "Tennessee's Partner" are not evil villains in spite of some of their actions.
What was significant about the Olmec civilization? (5 points) The Olmec civilization left a great deal of written records behind. The Olmec civilization ha
My friend Gus guessed that his riddle was about the number 47. Why can't 47 be the answer to Gus' riddle? Explain.
Lola and bill like to go out to eat a lot. when they write out their budget, they should include restaurant meals in which category? a. food b. entertainment
Identify the complete adverb clause. I'm going into the house because I'm cold. 1. I'm going 2. I'm going into the house 3. into the house 4. into the house bec
What does the Supremacy Clause do?