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

Let X be the future lifetime random variable in years for a newborn (age 0). The probability density function of X is as follows: f(x)= ke^-0.01x 0< x< 1
f(x) = x^2 What is g(x)?
What metaphors are in my last duchess and what is the message they convey?
the ___ two sets is the set of elements but could be found in both sets at the same time
-3x+ 7 = -2 what is x?
Which of the following describe a stem cell? Select three options.
Three elements have the electron configurations 1s2 2s2 2p6 3s2 3p6, 1s2 2s2 2p6 3s2, and 1s2 2s2 2p6 3s2 3p6 4s1. The first ionization energies of the three el
Any help would be greatly appreciated
10. Which one of the following does the "H" stand for in the technique for pinpointing the cause of stress? Hold Hunger Hope Harm
Write a narrative account analysing the conflict between the Plains Indians and the US government in the years 1876-90 (8 marks) You may use the following in yo