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

When ATP is converted to ADP ... occurs. a. dephosphorylation b. phosphorylation c. active transport
6 people share 3/5 pound of peanuts equally what fraction of a pound of peanuts of each person receive
Which of the following events motivated China to launch its Self-Strengthening Movement in the 19th century? a. its devotion to laissez-faire economic b. its ec
The classical civilizations of india and china shared which of the following traits with the Roman Empire? A. They all had agricultural economies B. They were
The tone of “I am the Land. I Wait.” Might be described as (1 point) a. bitter b. joyous c. patient d. syrupy
Round each number to the nearest tenth. What is the best estimate for the answer to 47.82 74.31?
Convert 91007500 to scientific notation
What are some things that need to be mobile? I need answers
In New York, Island was the location where immigrants were processed into this country.
Which sentence correctly uses a pronoun in the objective case as an indirect object? They gave Team USA a standing ovation at the end of their performance. The