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

One of Galileo’s contributions to science was
Which part of the apple flower produces cells by meiosis?
Which are a possible consequences for violating a zero-tolerance school policy? Check all that apply. A. expulsion B. suspension C. corporal punishment D. remo
Simplify the expression. 8.75 + 12 • (–0.8) ÷ 6 A. –14 B. –2.77 C. 7.15 D. 10.35
In order to become president of the United States, the candidate must win a majority of the votes in the electoral college. Each state has a certain number of e
Who wants to save my life???
Follow the process of completing the square to solve 2x2 + 8x - 12 = 0. After adding B2 to both sides of the equation in step 4, what is the constant on the rig
Can antibiotics change the color of my infant's poop
What are the characteristics of a fable? Apply these characteristics to Animal Farm.
Which are a possible consequences for violating a zero-tolerance school policy? Check all that apply. A. expulsion B. suspension C. corporal punishment D. remo