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

sliva used the steps below to prove the Pythagorean theorem
What kind of economy was instituted under Joseph Stalin? a. command economy b.free market economy c. mixed economy d. capitalism
1. American history from the late 1800s through the pre-World War I era witnessed a transformation in foreign policy. Imagine that you are preparing the introdu
sin x degrees= 4/15 HELLLPPPPPPPPP PLEASEEEEEEEEE!!!!!
How to solve (-27)^(1/3)?
How is the nuclear fusion that takes place in the sun different from a chemical reaction? A. It happens at a lower temperature. B. More energy i
Who’s Macbeth from Shakespeare’s
Which statement explains how railroad rebates worked? a. Railroad owners reduced fares for low-income customers. b. Railroad owners agreed to divide up the busi
How was the People’s republic of China formed?
which of the following cases is NOT specifically related to hispanics civil rights