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

Who spoke against British rule in colonial times? A. Charles Townshend B. Patrick Henry C. Isaac Newton D. William Hudson
Help I’ll mark brainliest !!!
2 × 5 + 7(2 + 11) Which of the following describes 7 in the expression above? A. factor B. sum C. product D. quotient
In the poem, 'I, Too, Sing America', Explain the authors view of America... Describe how your vision is the same or different from his View..
If f(x)=x^2-5x and g(x)=8-x^3, evaluate the following: a. (f+g)(3) b. (g-f)(4) c. (f*g)(-1) d.(g/f)(-2)
The atoms in a chemical reaction are responsible for the (4 points) mass energy temperature explosion
How do volcanic eruptions effect the composition of the atmosphere? a. Volcanic eruptions add greenhouse gases to the atmosphere, but they take dust particles
Briefly explain how a star produces its own heat and light.
A new pencil was 18 cm long. Now it measures 12.7 cm. How many centimeters of the pencil have been used?
What were the differences in industrialization between Europe and the United States and Japan