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

Who was the first president of United States?
Convert 10 qt/min to gallons per hour. 15 gal/h 150 gal/h 40 gal/h 600 gal/h
What is the first step in summarizing a passage? A. take notes B. write a summary in your own words C. locate supporting details D. locate the main idea
How to get to landscape mode in microsoft word
A survey showed that 9 of every 25 students liked dogs while 13 of every 20 students liked cats. How many more of the students like cats than dogs?
what is the main term for the following statement chronic pancreatitis
A(n) ________ attack can be used to deny access to a computer system.
What happened to them?In the poem cold within
For the graph y = 41 find the slope of a line that is perpendicular to it and the slope of a line parallel to it. Explain your answer with two or more sentences
Find the real numbers x and y if -3+ix^2y and x^2+y+4i are conjugate of each other. Pls solve with the steps