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

Which effect was this poster intended to create? O It was created to inspire women to join the military during the war. O It was created to persuade citizens to
What are things congress can’t do?
please need help on this, it’s due soon!
Which of the following is equivalent to (p3)(2p2 - 4p)(3p2 - 1)? (p3)(6p4 - 12p3 - 2p2 + 4p) (p3)(6p4 + 4p) (2p6 - 4p3)(3p2 - 1) (2p5 - 4p4)(3p5 - p3)
Tom, Michael and Jane visit the same sport club. Tom visits the club every 5th day, Michael every 6th day and Jane every 8th day. If all three of them were in t
HELP PLEASE I HAVE 10 MINS
helppppp meeeeeeeeeeeee​
Why was the colored farmers alliance important
It is not necessary to spend a large amount of time preparing for an essay because you are never really sure of what the questions will be. Please select the be
in Pennsylvania, only registered party members can participate in a political party's primary election. What does this mean? A Only registered Democratic voters