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

help me asap please & thank you.
A cup of coffee is on a table in an airplane flying at a constant altitude and a constant velocity. the coefficient of static friction between the cup and the t
N object moves in a circular path at a constant speed. what is the relationship between the directions of the object's velocity and acceleration vectors?
which of these best characterizes the language spoken in England between 1066 and 1300
Which of the following is the correct graph of the compound inequality 4p + 1 > −7 or 6p + 3 < 33?
The equation y = ax describes the graph of a line. If the valise of a is positive , the line:
Compare and contrast analyzing data and drawing conclusions
16x²+20y² me ajudem nessa obgd
Consider the following scenario. A marble factory produces marbles that weigh 10 grams apiece. The standard deviation of the weight of a bag of 100 marbles is
Please help A.S.A.P!!!Change the adjectives below to a superlative by adding the appropriate ending. bella bonita bajo