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

Catherine de Médici was able to ____ European politics in the sixteenth century by marrying her daughters to the kings of Spain and France. A. manipulate B. gen
PLEASE USE RENDER IN A SENTENCE (IM USING 20 POINTS) RENDER = TO GIVE OR TO MAKE AVAILABLE PLEASE USE THE WORD IN AN EASY SENTENCE LIKE EVEN ELEMENTARY KIDS CA
Which pronoun best completes the sentence? Skateboarding down the sidewalk were Jonathan and __________ . A. him B. them C. he D. me
help me please with this
Alaska has a land area of about 1,700,000 square kilometers Florida has a land area 1/10 the size of Alaska.what is the land area of Florida
Algae products can be found in a. Ice cream b. Cereal c. Vegetable Soup d. Milk I was thinking its either a or d..
What is the solution to 6.6-1/3 with out using a calculator
1. Default tab stops are set in Word every _______ inch. A. 1 B. 1/2 C. 1/4 D. 3/4 2. Once you've saved a block of text or graphics for easy insertion in other
How is the gerund phrase used in the sentence? My hobby is surfing every weekend. A. predicate nominative B. object of a preposition C. subject D. direct object
What is "The Star-Spangled Banner" about? A. the White House B. the American flag C. the Statue of Liberty D. the Declaration of Independence