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

Using the unit circle, determine the value of sin 450°
Wings of birds,wings of insects and patagia of bats are analogous organ​? why
merry christmas! my teachers gave me work. ill be happy if u help
Wings of birds,wings of insects and patagia of bats are analogous organ​? why
If the points (2,7),(-3,3) and (5,1) are the vertices of a triangle ,find the length of the median drawn through the first vertex.​
please help me with this​
Math help please Thanks A lot
) Water flows through the system shown below. Estimate the volumetric flow rate if friction losses are negligible.
According to Hebrews 11, what did Abraham believe God would do if Isaac was slain as a sacrifice? Please help me I need it for tonight!
numbers that equal to 39