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

Robbie has 2 times as many apples as Bob. After receiving 35 more, Robbie now has 7 times as many as Bob. How many apples does Bob have? ​
Mitchell went on a shopping trip to Kensington. He purchased a pair of headphones originally priced at $50 but discounted 60%. If the sales tax in Kensington is
A 5 armor drake is crossed with a no armor drake. All of the offspring were 3 armor. Based on these results, which variation do you think is dominant, 5 armor o
what is 2x10? I need help on my.
Please answer!it is grade 6 math
Write the word sentence as an equation.The sum of a number x and 4 equals 12. An equation that represents this sentence isPLEASE ANSWER
Expand and simplify 3(2x+1)+2(x+4)
(If right ill mark brainliest) Please help! Thanks
Who were the three U.S. diplomats sent by John Adams to France to try and restore peace between the two countries?.
how American women’s lives changed as a result of World War I.