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

Occurs when two members of congress share no common interests but agree to support each other’s bills.
Which statement is true about this data? 79,66,82,84,86,85,84,85,88 A 88 is an outlier because it is greater than the upper fence B 66 and 88 are both outlier b
three-point 3.652 minus 1.41 hundreds equals what
Which of the following would increase the conductivity of a connecting wire? (More than one answer). A) increase the diameter B) increase the length of the wir
Which of the following is not true concerning rainforests?
Describe the heart and its position in the body.
Is the ratio 6 to 3 the same as the ratio 3 to 6? Why or why not?
On average, a newborn baby gains 200 grams every week. How much weight does an average baby gain after four weeks?
write a problem that uses a fraction greater than 1
Are there any restrictions on the values x and y can adopt?