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

a short essay discussing the characteristics of early Italian Baroque art and the movement's relationship with Renaissance and Classical art.
Matching questions match each description with the appropriate phase of mitosis: a.anaphase b.telophase c.metaphase d.prophase 1) chromatids move toward opposit
In a survey, 17 high school graduates and 16 non-graduates were asked a qiestion.
HELP MEEE RNNNNNNNNNNNNN
Advance ticket: $__ Same-day ticket: $__
Find an equation for the line below.
We read the word de55ert as 'dessert' rather easily, even though it is grossly misspelled with the number '5' in place of the letter 's' twice. this influence o
Difference in fresh or frozen fecal microbiota transplant for recurrent c diff infections ncbi
C. X(-4,-3) V(-5,0) E(-2,-1) K(-1,-5) D.X(1,-1) V(0,2) E(3,1) K(4,-3) Geometry math question please help
In an endothermic reaction, heat is absorbed from the surroundings. How does this affect entropy? A. The particles in the surroundings move slower and have dec