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

[ ]a0 Trade is carried on without government control
WILL GIVE THE BRAINLESTHow do Japanese masks represent its culture?​
What is the summary equation for photosynthesis
Is it possible for you guys to read a book called the giver and then write a whole essay, can you please do it it’s due tomorrow
how did the economy of west Europe change after the crusades
Please solve this equation -4sin^2x + 16sin^2x/2-1=0
What is the answer Hehshsjsb s. Dhdbsjzbsbajsbxvshsmsndjsjsjs
Which rational numbers when multiplied by -1/2 will result in a positive rational number as the product and why? A) any negative rational number because the pro
the distance from mike's house to marys house is 1,013 meters. how far is mike's house to mary's house in kilometers.
Plz step by step understanding on this answer !!!!!!!!