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

Which one of the following statements is accurate? A. Electron microscopes focus beams of light using magnetic fields. B. Compound light microscopes utilize le
Which of the following does not contribute to water pollution? a. forestry b. industry c. agriculture d. none of the above
The book THAT SHE IS READING is overdue from the library. a) noun clause b) adverb clause c) adjective clause d) independent clause
Edwin Hubble categorized galaxies according to their a. colors. b. shapes. c. inhabitants. d. food supplies.
Hello can you help me out with this? Asap? Here's the question: Making Inferences: What factors would cause the rate of mechanical weathering to differ for diff
How long will it take to earn $568.75 in interest if $2500 is invested at a 6.5% annual interest rate?
Round off 863 to one significant figure
The smallest unit of an element that has all of the properties of the element is a/an A. atom. B. neutron. C. cell. D. molecule.
Which expression represents the product of unknown number and 19?
Whats the richest country in the universe?