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

In 1918 why did Russia sign a harsh peace treaty with the germans
what is the seventh term (x-2y)^6
Nathan had an infection, and his doctor wanted him to take penicillin. Because Nathan’s father and paternal grandfather were allergic to penicillin, Nathan had
The movement of the Earth’s plates is also called: a. divergent plate tectonics c. converging plate movement b. plate tectonics d. plate movement
Periods when little rain falls and crops are damaged are called ?
Which quantity gives the best indication of the relative strength of the hydrogen bonds between the molecules in liquid hydrogen halides?A: bond dissociation en
A 500-n crate needs to be lifted 1 meter vertically in order to get it into the back of a pickup truck. what gives the crate a greater potential energy?
Find the volume of the shaded region of the cylinder
How long have we had automatic weapons?
The northern 40 percent of Canada consists of