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

James pays $120.00 for golf clubs that are on sale for 20% off at Golf Pros. At Nine Iron, the same clubs cost $8.00 less than they cost at golf Pros. They are
What would be the best organizational choice for a short story? A. spatial B. order of importance C. chronological order D. compare/contrast Please select the b
Match the water system to the letter that represents it on the map.1.Great LakesF2.Arctic OceanH3.Mississippi RiverG4.Yukon RiverC5.Atlantic OceanB6.Bering Str
Do you get points off your SAT test for not answering the question? I know you don't get points taken off by getting a answer wrong but if I don't answer the qu
What are two historical examples of how different civilizations used wind energy
for the equation -4y=8x, what is the constant of variation?
Which sentence from the passage would provide evidence for how frustrated and tired the narrator was on Sunday night? A. "It is sometimes difficult to tell exa
I need help with both these questions please
for the equation -4y=8x, what is the constant of variation?
Britain wanted control over the Suez Canal because