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 the area of an equilateral triangle (regular 3-gon) with the given measurement 9-inch A=sq. in.
The Clovis Folsom and Plano culture we’re all based on what
Find three solutions of the equation y = 9x – 4.
what does x=? I know it is vertical
What happened in chapter 15 of Frightful’s Mountain
Brainliest! What three institutions influence economics the most? Explain how each influences economics and provide examples of each.
When environmental conditions change, it is more likely that at least some members of a species will survive if
What is the factored form of x3 + 125? (x3 + 5)(x6 – 5x3 + 25) (x3 – 5)(x6 + 5x3 + 25) (x + 5)(x2 – 5x + 25) (x – 5)(x2 + 5x + 25)
PLEASE HELP ME BABES!! The dimensions of a square are doubled. What happens to the area of the square? A) The area triples. B) The area doubles. C) T
what is the second stage in creating a new public policy? A. The executive branch creates a proposal. B. A state official petitions the federal government. C. C