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

Sound waves can't travel through A. an elastic material. B. a liquid. (C. a solid.) D. a vacuum. I answered C and it's not correct so i dont know what else it
A psychologist would say that she enjoys the game because it acts as a __________.
True or false: 7 is not a factor in assessing community risk
Which one of the following sentences contains a predicate adjective? A. The air feels damp. B. This time I will not fail. C. Several students f
5t-2r=25 solve for t.
the density of seawater is 1.025 g/ml. what is the mass of 1000 liters of seawater in g amd kg?
The half-life of fluorine-20 is 11.4 seconds. After _______ seconds, 1/4 of the original amount of fluorine-20 will remain
A fast flowing river can carry very little sediment.true or false
what can multiply to give you 80 but add up to give you 11
What is the sum? 10/19+3/19