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

Why are maps important parts of history?
HELP PLEASE URGENT!! Write a four-sentence paragraph using three subjunctive mood verbs.
Use the structure of a water molecule to explain why its is polar
Read this excerpt from the world on turtles back Based on this excerpt, it is reasonable to conclude that
"Where are we supposed to go to the bathroom?" he asked Magnet. Magnet gestured with his arms to the great expanse around them. "Pick a hole, any hole," he said
An interior designer charges $100 to visit a site, plus $55 to design each room. Identify a function that represents the total amount he charges for designing a
Find the median of the following data. 46, 24,87, 64, 39, 50, 37, 48
True or False: Segment Y M is congruent to segment PW. GT Y BM PD W -10 -5 0 5 10 Select one: O True O False​
Read the following sentences and rewrite them, making the necessary corrections
4. What two sounds does "G" make in Spanish? ​