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 solution to this awnser 6x+2y=-26
what is 10.4 in the form of a mixed number simplified
How do you say "Hello" in Swahili
What event inspired U.S. sentiment to turn negative towards Mexico, even leading some to refer to Mexico as “Soviet Mexico”? A. a movement to reclaim oil reserv
what can be related to heat flow and movement of molten rock within the interior of the earth?
Montel spends $0.75 every time he plays his favorite video game. If he has $10 write and solve an inequality to find how many video games he can play
What measurement shows how much space is inside a rectangular prism
Yuri has a rope 12m long. he cuts it into pieces that are each 2m long. what fraction of the rope is one piece
Which is more, 5,280 feet or 1 mile?
A negatively charged ion is called a(n) _____.