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

4 times a number is 21 less than the square of that number. Find the positive solution ​
(1-cos^2x)(1+tan^2x)=tan^2x
NEED HELP ON THIS QUESTION ASAP
Which statement BEST concludes this paragraph?
what are thd differences between pure water and potable water​
a cake pan is shaped like a rectangular prism the pans volume is 216 in. the cake pan has a base that is 12 inches by a 9 in. what is the height of the pan ?
What is the slope of 0,3 4, 2
Which of the following properties is NOT a property of a parallelogram? A) Opposite angles are congruent B) Diagonals bisect opposite angles C) Diagonals bise
Find the measure of the angle indicated in the image above. A) 120 degrees B) 76 degrees C) 80 degrees D) 90 degrees
The actual distance between parks is 24 miles On a map these parks are 8 inches apart How many miles are equal to one inch on the map