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

if i have an 84 in a class, and I get a 67 on a test, what is ny grade?​
May I please receive help?
Steven, Stacy, and Jimmy all go to an amusement park. Their combined entry fee for the park is $44. All three friends bought a soda, which was $2 each, and nach
When methane (CH4) combines with oxygen (O2), carbon dioxide (CO2) and water vapor (H20) are produced. Which equation represents this chemical reaction? O A. CO
retentions are also commonly known as
How do you say i know how to play football? (saber o conoce)
_A triangle has height 15 in. and area 120 in... What is the length of its base?
In what ways does "Hills Like White Elephants" exemplify Hemingway's iceberg technique
What was hard about being an immigrant to the U.S.? How did the Progressives at Hull House try to help immigrants? Use the Hull House photos to answer the quest
Find the slope of the line satisfying the following conditions. vertical through (6, -7)