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

yasmin bought 4braclets each bracelet cost $3
Jessie has a piece of wood that is 8 feet long. He needs to cut pieces that are seven eighths of a foot long. How many pieces will he be able to make?
what type of bond holds the hydrogen and oxygen atoms together in a water molecule?
What was the basic political unit of Sumer?
what is the solution to 6y-(2y-5)=29
the specific temperature at which a substance changes from a liquid to a gas is an example of a a. chemical bond. b. chemical change. c. physical property. d. c
the neolithic revolution caused a decrease in population because so many died?
At a warehouse, boxes of merchandise are placed on shelves in stacks that are 7 boxes high. If each box is 4 3/5 inches in height, how tall is the stack of boxe
What is a welled tested concept
expand and simplify 3(x+2)+2(x-1)