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

Rabies is a deadly disease that progresses rapidly. What type of treatment would be best for a person who has not been vaccinated for rabies and has been bitten
A biologists discovers a new unicellular organism and isolates various components making up the organism. One component contains phosphate, uracil, adenine, rib
what are the factor pairs of 73
21/36 in simplest form
A number decreased by negative three is equal to -40. Write an equation and find the number.
Because burning fossil fuels releases pollutants, it is necessary for us to stop doing so at once. Which statement BEST addresses the impact that this course of
When electromagnetic radiation is arranged to wavelength and frequency, it forms the A. electromagnetic spectrum. B. multiple-spectrum vividness. C. ecliptic pl
Why did bacons rebellion collapse
translate each equation into verbal sentence. g+10=3g 2q+4q=20 4 (a+b)=9a 8_6x=4+2x S (squared)-3 (squared)=2b
(c-30)(c-120)=184 how do I solve it