demsaikou9 demsaikou9
  • 07-12-2020
  • Computers and Technology
contestada

Consider the following code:
X = 18
if (x > 18) :
print(1)
elif (x <18):
print(2)
else:
print(3)
Which of the following will the code output?

Respuesta :

mrsaini281 mrsaini281
  • 07-12-2020

Answer: 3

Explanation:

Because X = 18 and our condition given to the code if > and < which do not match with the input so it prints 3.

Answer Link

Otras preguntas

what is a human's purpose in this world? ^ACTUAL QUESTION^
What nutrients does a steak contain in significant amounts?
You better not be drinking, let me see did I put the comma correctly?
US economic influence in other countries led to __________ diffusion. a.politicalB.culturalC.traditionalD.environmental
photographic reprints cost 0.52 each at a local photo shop, or 0.4r each plus 1.15 postage and handling, through the mail. how many reprints must a customer pur
More points!! Please solve 22 and 23
Read the line from “Sonnet 18” by William Shakespeare. But thy eternal summer shall not fade, What is the best paraphrase of this line?
Find the equation of the line with the slope 1/2 which goes through the point (6,-3)
Prior to 1812, most Americans lived Select one: a. in the NorthWest of the United States. b. West of the Mississippi River. c. In the Southwestern Plains. d. al
Can someone please help me with this answer