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

Exercises that involve hyperflexion or hyperextension of the knee may injure the knee joint. true or false.
Except for __________, the following statements about blood are true.
reasons why both men and women could become victims of violence.
Some postmodern sociologists work to show us how all “facts” are created arbitrarily by people with varying degrees of power. this is known as:
How do you convert 20 gallons into km?
What obstacles did Theodora have to overcome to rise in society?
Somalia’s government experienced instability because of repeated __________ in 1969, 1991, and 2004. A. elections B. coup d'etats C. foreign aid attempts D. UN
The spinal column is sometimes referred to as the backbone True False
A student wants to express her excitement to friends about getting her driver’s license. Which type of writing would not be appropriate for this audience and p
factor this expression 9x+123y