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

How are the the social classes of Sumer organized
Choose the sentence in which the italicized pronoun agrees in number with its italicized antecedent or antecedents boat people?
How did the fugitive slave act make more people in the north upset with the institution of slavery?A. Northerners were unhappy that their cities started to ensl
How did the system of feudalism restore order to western europe?
Can someone please help me with this? (20 points) The shaded square is inscribed in the larger square, Find the area of the shaded region. (picture of problem
Which of the following is the equation of a line that passes through the points (2,5) and (4,3)? A. y = x + 7 B. y = 2x + 5 C. y = -2x + 5 D. y = -x + 7
what elements of internal monologue in Modernist writing
The three kinds of cells in blood are?
1. in The Red Badge of Courage, for what exploit was the youth praised by the colonel?a. for carrying the flagb. for getting the enemy's flagc. for rallying the
A cell membrane is a phospholipid bilayer that has polar and non polar ares. On both sides of the membrane are aqueous fluids. What is an important funtion of t