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

Read this thesis statement. The gray whales' annual journey from the frigid waters of the northern Pacific to the warm lagoons near Baja California, Mexico, is
When do you use a semi colon?
white the rule for the dilation that maps (-3,-2) on to (-15,-10)​
Derrick is an executive with a large financial firm. Any time his investments de poorly, he throws temper tantrums and breaks things. Then he starts barking ord
What are the best type of colors to use on a statement piece, such as a plant? xoxoxo, lydia-
Who led the Japanese army, and what happened in Nanjing?
What is the value of In 1/e^3
After a student finishes high school, he or she has many choices. The student can try to get a job, start vocational training, or pick a collage or university f
An organism that lacks neurons that perform integration A) can be expected to lack myelinated neurons. B) will not have a nervous system. C) will not be able
i need help in i ready