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

PLZ HELP 50 points. 4. How did Debevec and his team keep Emily from looking like a plaster mannequin?
In a survey of 18 college students, it was found that 11 were taking an English class, 6 were taking a math class, and 4 were taking both English and math. How
complete the following exercise ​
Which numbers is a factor of 100? 8 12 15 20
When a business offers valuable goods and services what is the potential negative effect of this? 1) causing financial instability 2) disturbing communities 3)
Can yall Help me with thiss​
Object A is moving 12 feet per second and Object B is moving 5 miles per hour. Which statement is true comparing the speeds of the two objects?
Why do we use anatomical position?
Medications used to treat depressive disorders usually act on the neurotransmission pathway, True False
8. Kathy is painting the outside of her house. Its area is 2,250 square feet. Each gallon of paint covers 250 square feet and costs $19.90. How much money is sh