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

Abigail rides her bike with a constant speed of 12 miles per hour. How far can she travel in 45 minutes?
Need help with this math question 2%+36*14000= ?
_________ is an agent that kills bacteria. germicide antiseptic bactericidal antiviral
Sound can travel through a medium, but it does not require a medium. a. True b. False
from "EXTRICATING YOUNG GUSSIE" by P.G. Wodehouse 1.She sprang it on me before breakfast. There in seven words you have a complete character sketch of my Aunt A
Which proportion could be used to find 77% of 126?. A. [tex] \frac{77}{100} = \frac{126}{x} [/tex] B. [tex] \frac{77}{100} = \frac{x}{126} [/tex] C. [tex] \frac
The economy of the United States can best be described as: a. a blend of socialism and communism c. a command economy b. a pure laissez-faire economy d. a m
Reaching a conclusion by looking at several examples is called
In a marketing context, a message refers to a. product information regarding, benefits, price, and usage found on a product’s package. b. the slogan or taglin
The two main goals of corporations were to eliminate competitors and _____. to increase their own profits, to reduce consumer costs, to produce top-quality prod