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 safety measures should you follow during a thunderstorm? Check all that apply. (A) Avoid touching anything that conducts electricity. (B) Avoid touching a
Why did Einstein write a letter to President Roosevelt
the product of 3 and a number increased by 8 is 31 written as an equation
Derek's mother had a busy day ahead of her. She asked Derek to help by going to the store and buying groceries. "We need bread, milk, cheese and other things,"
why would the rumor of a government contract change the value of this companys stock
I need help before tomorrow
Sally deposited money into a savings account paying 4% simple interest per year.The first year,She earn $75 in interest.How much interest will she earn during
SOMEONE PLEASE HELP THIS IS DUE TODAY!!!!!!! >.< Create an equation that can be used to find the value of x? Hint: What type of Angle Pair do you see? Her
In the great Gatsby, daisy is described as
Choose the most likely outcome of this scenario: Jen decided to go bike riding without a helmet. While no one is around during her ride, she is thrown from her