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 westphalian idea of the sovereign equality of member states is
Write a polynomial function of minimum degree with real coefficients whose zeros include those listed. Write the polynomial in standard form. 5, -3, -1+3i
What is the total number of electrons shared in the bond between the two carbon atoms?
What are the oxidation numbers of the atoms in this reaction? Check all that apply. Mg(s) + 2HCl(aq) → MgCl2(aq) + H2(g) 0 for Mg in Mg and MgCl2 0 for Mg(s) an
"which personality trait tends to increase with age"
Calcium chloride forms an ionic solid. how are the particles held together and arranged in the solid
How else can nordstrom continue to provide exceptional customer service and increase brand loyalty?
22 is 55% of what???
which is the smallest number can be rounded off to 60
what method did the union use to stop south cotton trade