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 author received the Pulitzer Prize in 1998? (Points : 2)
What makes a hypothesis testable
Solve the inequalities: 3(m-5) - 6 > -36 What do I do?
2x + 7 = x + 3 what is X ?
Erica used friendly numbers to find 43-19 she added 1 to 19 and subtracted 1 from 43 what is Erica's error
Which shows the phrase the product of a number and 3 as a variable expression? A. n+3 B. n-3 C. 3n+3 D. 0.01d + 5( 0.10d)
Which identifies all the integer solutions of |x| = 17? a. –17 and 17 b. 0 only c. 17 only d. –17 only
What is Newtons second law of motion?
Which words make up the adverb phrase in this sentence? In colonial days, there were no fire departments. A. fire departments B. In colonial days C. there w
1. An agreement to count slaves as three-fifths of a person was related to A. the creation of an upper and a lower house in Congress. B. the number