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

Simplify. Write your answers without exponents.
Why did ratification of the Thirteenth Amendment actually increase the voting strength of the Southern states? A- Freed Black men could now be counted as 3/5 in
please help me I don't understand this
Which statement is true? A. The function f(X)=sin(x) is an even function because its graph is symmetric about the origin. B. The function f(X)=sin(x) is an od
A rock outcrop was found to have 78.88% of its parent u-238 isotope remaining. approximate the age of the outcrop. the half-life of u-238 is 4.5 billion years o
Some points for a 5 paragraph essay on why George Washington had the most impact during the Age of Revolution
Represents a single pathway through which energy and matter flow _____ 2. feeding positions in a food chain or web _____ 3. the living aspects of the environmen
rewrite y= 16x-32 -3 to make it easy to graph using a translation describe the graph
In a group of 26 students, 4 study both art and biology. 5 study biology but not art. 5 study neither subject. given that a randomly selected student studies ar
Convertir los adjetivos en verbos y sustantivos