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 tools are used to pick up tiny objects
Is a church more than a building? Answers need to be long
43.586 to the nearest tenth, hundredth, and one.
What is the climax for Rikki Tikki Tavi
The Neolithic Revolution refers to the time when early humans were beginning to do what?
David opens a bank account with $140 and then deposits $150 each month. Louis opens a bank account with $260 and deposits $120 each month.  How many months will
how are solutions and compounds similar
find the difference between 12.34 and 10.778. round the answer to the nearest tenths place
What might be an advantage of collecting evidence in a natural setting rather than in a lab?
The pH of human blood is slightly basic. Which of the following is most likely to be the pH of human blood? (A) 10.6 (B) 7.4 (C) 7.0 (D) 6.4 (E) 4.6