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 were some of the difficulties America faced in maintaining good relations with Japan?
The ratio of girls to boys on a soccer team is 2 to 3. If there are 25 players on a team, how many are girls? Solve by writing and solving a proportion
What was the song of Troop G?
Which of the following territories did Germany acquire at the end of the Franco-Prussian War? A. the Alps B. Alsace and Lorraine C. the Rock of Gibraltar D. the
Carly is making three cakes for the bake sale. The second cake requires 1/2 cup more flour the the first cake. The third cake requires twice the amount of flour
Which balloon was the first balloon in the 1927 Macy's Thanksgiving Day Parade: (a) Mickey Mouse (b) Felix the Cat (c) Betty Boop (d) Superman
what job did mark twain hold as a young man?
during the reconstruction period southern state legislatures passed ___, which subjected former slaves to a variety of special regulations and restrictions on t
In Common Sense, what does Thomas Paine say in response to the argument that the colonies have done well under the control of Britain?
Where is marathon on a map