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

Why did Los Angeles city leaders need to seek water sources outside the city?
1is 1/10 of what number?0.09 is 1/10 of what number?
What are all the multiples of 5??
Simplify (10 + 3i)(5 – 2i) ...?
Which of the following statements about the early civilizations of Pacific South America is NOT true? Peru’s first advanced civilization built stone terraces in
During swallowing, which structures prevent food from entering the nasopharynx and trachea? ...?
Wich of the following is the most appropriate unit to describe the rate at wich data is transferred using the internet ?
How do ribosomes exit the nucleus once formed?
how can satellites help people study the earth
A once thriving company in Teaneck had its monthly profits, in thousands of dollars, modeled by the equation? f(t) = t^2 + 9/ 1t^2 + 2 where t is in months aft