maddygabbard529 maddygabbard529
  • 01-11-2021
  • Computers and Technology
contestada

Consider the following code: color = input("What color? ") if (color == "green"):   print ("Correct") else:   print ("Nope") elif (color == "red"):   print ("Correct") What happens when it is run?

Respuesta :

severaja1 severaja1
  • 09-11-2021

Answer:

There is an error, the else should be after the elif

Explanation:

Answer Link

Otras preguntas

What are the solutions of the system?y = x^2 + 2x +3y = 4x - 2a. (-1, -6) and (-3, -14)b. (-1, 10) and (3, -6)c. no solutiond. (-1, -6) and (3, 10)
the pyramid below was dissected by a horizontal plane which shape describes the pyramid horizontal cross section
SOMEONE PLEASE ANSWER ASAP FOR BRAINLIEST!!!!! A discount store’s prices are 25% lower than department store prices. The function c(x) = 0.75x can be used to de
what is the main idea of this excerpt? 1.1.3
Find the commission on a $590.00 sale if the commission is 15%.
You earn a 12% commission for every car you sell. How much is your commission if you sell a $23,000 car?
What are the solutions of the equation? 5z^2 + 9z - 2 = 0 a. 1, -2 b. 1, 2 c. 1/5, -2 d. 1/5, 2
How do you write something in scientific notation?
The sum of these consecutive integers is equal to 9 less than 4 times the least of the integer. Find the three integers
Which Equation represents the model shown? A)1/3 divide 1/6 = 2 B)2/3 divide 1/6 = 2/18 C)1/3 divide 1/6 = 1/18 D)2/3 divide 1/6 =4