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 is the cost per unit
Which sentence is capitalized correctly? Ouch! that rose bush is loaded with thorns. Ouch! That Rose Bush is loaded with thorns. ouch! That rose bush is loaded
I an confused need help on number 6
how do a cell reproduce?
Ashamed of the cruelty of his military victories, this leader from northern India became a Buddhist and built hospitals, roads, and places of worship. Who does
According to Gibbon, in what ways has "primitive man progressed over time? what assures the author that this progress will continue?
Please help and explain how to do it
7. which sentence correctly uses punctuation with dialogue? (1point ) A. after the game , the coach shouted , “ congratulations to everyone ! “ b. “ The winning
How do you become an informed citizen?
Find 3 consecutive integers such that twice the first, plus three times the second, plus four times the third is 20. Please show work, explain throughly so I ca