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

What is the net ionic equation of the reaction of mgso4 with ba(no3)2? express you answer as a chemical equation including phases. view available hint(s)?
Vertical angles are supplementary
Given: ABCD is a trapezoid, AB = CD, BK ⊥ AD, AK = 10, KD = 20 Find: BC AD
over 6 days, Dan jogged 7.5 miles, 6 miles, 3 miles, 3 miles, 5.5 miles and 5 miles what is the mean distance that Dan jogged each day
At what point should an arrested individual be advised of his or her constitutional rights
Find the circumferences of the circle.
what is 1/8 of $24.56?
is 5 + 2y = 13 a linear relationship?
Why did john brown want to seize the federal arsenal at Harpers ferry?
On average, how far do agricultural products travel from farm to plate in the united states? on average, how far do agricultural products travel from farm to pl