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

at which stage of the scientific process would a scientist look at experimental data from other scientists to set up a new experimental study
Predict the number of roses in a garden with 16 sunflowers if there are 3 sunflowers in a garden with 81 roses.
In the citation, davis v. baugh industrial contractors, inc. 159 wash.2d 413, 150 p.3d 545 (2007) what does the "2d." represent
Presume that water is h3o rather than h2o. how would this affect water's properties as a solvent?
what characteristics make Ur an advanced city?
Need help with problem 11.
What were three of the traditional rights expected by English colonists
5. Your Turn: Solve for x. Show your work. *
A mixture of table salt and ice is used to chill the contents of hand-operated ice-cream makers. what is the molality of salt in a mixture of 2.00 lb of nacl an
what is the equation for the problem In 2003, the price of a certain automobile was approximately $33,700 with a depreciation of $2,150 per year. After how many