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

If an increase in the price of product X causes an increase in the demand for product Y, we can conclude that
The state of New York requires people to have license plates on their car such that the first 3 characters are letters that may NOT repeat and the last three ch
20CM 2. Identify Indicate whether the wave description should result in higher-energy wave, or a lower-energy wave. Wave description high amplitude low frequenc
I need help on this, it says find m<1 and m<2.
question is attached
Question 1 (Multiple Choice Worth 2 pulllis) (04.08 MC) Tory is writing a speech about the negative influence of social med If I could give one piece of advice
im so confused help me pls
Find the value of x that makes triangle DEF ~ triangle XYZ .
how do you solve y=3/2x-1,-6x 4y=-12
Will is trying to figure out his next credit card statement balance. The previous balance was $1,281.63. He made a payment of $355 and had a credit of $142.73.