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

medical terminology suffix meaning for the suffix -esthesia.​
Write an expression to describe the sequence below. Use n to represent the position of a term in the sequence, where n = 1 for the first term. -10, -20, -30, -
What is the theme in The Harry Potter movies?
What is the best metric unit to use for the mass of a grasshopper
Plz help me i need it
is social media connection are as valuable as face to face encounter?​
I need help with this problem
which of the following has the greatest value?A) .4B) .36C) .052D) .173E) .0985I need help ​
Can someone help me with #1 please?
Find the volume length 10 2/5 cm, width 3 cm, height 8 1/3 cm