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

is 7/54 irrationalis 20.455566 irrational is 97.33997 irrational is 5.6213 rational ​
Translate the sentence into an equation. "Ten more than half of a number is 22."
Preferential treatment or mistreatment based on age, gender, ethnicity, or other attributes is known as ______.
What is the prefix of irresponsible?
Which of the following is a coelomate? shrimp fish humans all of the above
why did 5000 african americans join patriot militias
Order from least to greatest: [10, -5, 3, 16, -1, 0, 1]
If your heart beats an average of 68 times per minute, how many times will your heart beat in an hour? In a day? In a week? Show all work
Helpppp n show work if do :)
I need help with number 52! And I haven’t done 51