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

The burnt-out ends of smoky days. And now a gusty shower wraps The grimy scraps Of withered leaves about your feet And newspapers from vacant lots) The showers
Why did members of the Third Estate form the National Assembly? a.They were angry at the king for requesting a new tax on land. b.They could not participate in
In the following procedure, the parameter n is an integer greater than 2. Which of the following best describes the value returned by the procedure? a. The proc
work out the value of (6-2.5)( 8+4)​
Discuss the causes ,symptoms, preventive measures and treatment of AIDS​
Eighty-one million four hundred twelve thousand six hundred fifty​
(2, -16) plug in the correct variables in the equation belowy = mx + b​
2. ¿Cómo se nos presenta la tía a los lectores? ¿Y al hombre que viaja cerca de la familia? ¿Les parece que estos adultos se parecen entre sí? Justifiquen sus r
. Aşağıdaki şekilde hazırlanan tampon çözeltilerin pH'larını hesaplayınız? a) 8 mmol NaCH3COO+ 200 mL 0.1 M CH3COOH b) 100 mL 0.05 M NaOH+ 100 mL 0.175 CH3COOH
Meatball subs used to cost $5.40 at Mike's Sub Shop, but he just increased the price by $0.54. How much do subs cost now?