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

The boundary between the Piedmont and the Coastal Plain is known as the A) foothills. B) fall line. C) mineral pond. D) barrier islands.
Write the following as an algebraic expression. Then simplify. The sum of two consecutive integers if the first integer is x.
In a situation where you cannot meet face to face with a coworker, who is responsible for making sure that your communication is easily understandable?
according to newton's law of universal gravitation which statements are true
Which organelles would need to be added to the cell-house to make it a plant cell? Which structure within the cell-house would you pick to represent the functio
Which of the following was pax romana? a. a long period of relative peace in the empire b. a series of boarder wars led by julius cesar against the gauls c.
alex buys 30 shares of walmart at the close price of 48.80. his broker charges him 3% of each share as a transaction fee. how much did alex spend in total to bu
Help !!!!!!!!!!!!!!!!!!!!!
Help !!!!!!!!!!!!!!!!!!!!!
This is the system of overlapping powers among judicial, executive, and legislative branches to allow each branch to oversee the actions of the others.