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

how would you solve this
Ten times the sum of half a number amd 6 is 8 ?
Identify the dependent clause in this sentence. I could go to the concert if only I had fifty dollars. Select one of the options below as your answer: a. I cou
12 times what equals 78
How do you do this whole page help please
Tensions increased over time between Jamestown colonists and _____.
Pamela wrote the first American novel. a. True b. False
Three fourths of a number less two is five sixths of another number plus five
How do you do this whole page help please
What was the purpose of keeping the discussions within the Constitutional Convention a secret?