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

15 is 10% of what number
how many cups is 10 qt
Which verb form correctly completes the sentence? Is the verb singular or plural? A bedroom with a green ceiling and purple walls __________ been his request s
FUNCTIONS h(x)= 3^x a) Solve the equation h^-1(x)= 2
sierra's karate class lasts 56 days how many weeks does da class last
Do you agree with the quote "the world would be a dull place without music"? can u please explain to me in at least 5 sentences why?
Which European monarch established the Congo Free State as a personal kingdom in central Africa and ruled it ruled through violence and intimidation? A. Tsar Ni
Why did Spain colonize Florida and the Rio Grande valley? A. The Spanish found silver and gold mines there. B. Native Americans in that region wanted to trade w
Sara can take no more than 22 pounds of luggage on a trip. Her suitcase weighs 112 ounces. How many more pounds can she pack without going over the limit?
Dion practiced the long jump . He jumped 3.05 meters,2.74 meters and 3.3 meters.What was the average length of Dion's jumps?