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

Which of the following is a right triangle? A) a triangle with sides measuring 8, 12, and 13 B) a triangle with sides measuring 6, 8, and 12 C) a triangle
Which is the area of a square with one side that measures 1 foot? A) 1 square inch B) 100 square inches C) 144 square inches D) none of the above
which of the following division sentences does the figure below model A:1/2 DIVIDED by 1/3 B:1/3 divided by 2 C:2 divided by 3 D:1/2 divided by 1/4 please help
A conflict is a struggle between ______ forces in a story.
Soldiers duties in the civil war
Kirby is conducting a literature review in preparation for his study of “expectations regarding the sharing of financial and practical responsibilities among ma
whats the answer pls help?<3
Which of the following statements about the skeletal system is false
Please answer CORRECTLY !!!!!!! WILL MARK BRAINLIEST !!!!!!!!
A treatment for stuttering in which the person is asked to speak in a singsong fashion, usually with the aid of a metronome is ________.