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

find errors1) i'm not satisfied with (a) your explanation of where (b)  you was last night (c). no error (d)2) i came into  (a) the room when  (b) mary played t
the famous irrational numbers
In the stomach,a. liquids are absorbedb. bile acids dissolve the fats in foodc. food is converted to chymed. nutrients are absorbed through capillaries
who makes the most computers
who makes the most computers
how did hitler change the lives of workers
Which formulas represent one ionic compound and one molecular compound?
what is airbrushing? could you help me?
Perform the operations, multiply, and simplify.-a^3b (3a^2 b^5 - ab^4 - 7a ^2 b)
Multiply and simplify(x-3y) (x + 3y)