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

Development of Muslim nationalism in the 20th century
Which statement is true? A hypothesis must be based on the researchers analysis of the data collected in the experiment. A hypothesis must be testable for it to
Which liquid is the most viscous A. Syrup B.water C. Milk D. Apple juice
Which best describes the conflict and resolution between Achilles and Agamemnon?
The soviet blockade of West Berlin in 1948 was designed to prevent
A material that is not easily scratched is _____. tough strong hard elastic
is there DNA in your food? how do you know?
Where does photosynthesis occur?
Throughout his presidency, Nixon continued to look at Communism as a single, worldwide entity. a. True b. False
You are not allowed to park within how feet of a railroad crossing.