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

How are infectious diseases transmitted?
If you know this can you help me
How do you write 9.7x10^4 (exponent 4) in standard form? A.0.00097 B.0.000097 C. 97,000 D.970,000
Find the slope of the line represented by the table of values. A.1/2 B.1 C.2 D.4 X Y -1 1 1 2 3 3 5 4 7 5
What is specialization? A. Working for no wages B. Studying or working in one particular area
***DiSICLAIMER (due at midnight) this is for my senior quotes and I need someone to come up with a clever quote that goes with karma (which is my name)
1 _____ 2 Choose the relationship symbol to make a true statement. < = >
cells that carry info throughout your nervous system
According to Rick Potts, which of the following is NOT one of the elements that forms the foundation of culture? a. Memory b. Transmission c. Genetics d. Se
What are 2 conditions to enhance infant memory?