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

Sovereignty of the People means. . . . all the people can vote. The people are independent, have individual right and the people choose who represents them in
Evaluate the polynomial 6x - y, for x = - 3 and y = 2.Question 6 options:4–20–1615what's the answer​
cellular respiration results in​
PLS HELP ASAP! GIVING BRAINLIEST! What is the measure of the indicated central angle? A) 10 degrees B) 15 degrees C) 20 degrees D) 25 degrees E) None of t
what does an active volcano do?
look at the photograph of Louis Armstrong which is the best conclusion about this paragraph photograph?1. the artist use of Shadow and light contribute to a sen
Is a linear, a quadratic, or an exponential model a better fit to the data set? a) linear b) quadratic c) exponential
Factor the polynomial: x^2y+x+xy^2+y+2xy+2 (I NEED THIS ASAP)
More people in the united states are ending up with a chronic and disabling condition, ranging from arthritis (inflammation of the joints) to alzheimer's diseas
Marin has 24 gallons of gas, 1 gallon of gas can go to 25.12 miles, how many can Marin go in all?