ryanswag123
ryanswag123 ryanswag123
  • 23-01-2021
  • Computers and Technology
contestada




The following code will not compile. Which of the options below would allow the code to
compile and run as intended?
if (x >= -10 and < 10):
print("In range")

Respuesta :

martingarcia9931
martingarcia9931 martingarcia9931
  • 23-01-2021

Answer:

if (x >= -10 and x < 10):

print("In range")

Explanation:

you're missing an x in the if statement. program is getting confused when you run because it doesnt know what to compare after the and if you add x it'll know what to compare.

all this is saying is that if x is greater than or equal to -10 and x is less than 10 its in range!

if (x >= -10 and x< 10):

print("In range")

Answer Link

Otras preguntas

Which of these are isotopes of each other? Boron-12, Carbon-12, Carbon-13, Nitrogen-13
Work out the area of a triangle of base 5cm and height 6cm
I need to know the square root answer of this problem simplified
(3 – 6y2)(y2 + 2) what is this
what is DNA and why every life has it?
Now it is your turn. Be sure to design an experiment that you can conduct with materials you have on hand or that you can acquire easily. You will need to compl
according to Quindlen, how is america different from other countries?
The current through a 12v lamp when it is connected to a 12v battery is 2.0 A. Calculate the resistance of the lamp at this current
why are cheek cells more irregular in shape then that of the onion or elodea cells
A Cause or Effect Essay is an essay in which you write about the causes of something or the effects of something. Essays explaining the causes of home burglarie