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

I need help is it A B C or D
Which statement explains what the earth's climate would be like if the amount of nitrous oxide in the atmosphere substantially increased? A. Less heat may be tr
If x equals 3 calculate the value of 2x squared plus x
Height Salary 64 91 65 94 66 88 67 103 69 77 70 96 72 105 72 88 74 The following data set presents the heights of 12 male law school classmates whose law school
IS ANYBODY GOOD AT MATH????
The subject is stoichiometry. How many moles of NH3 can be produced from 12.0mol of H2 and excess N2?
A 1000 kg car can accelerate from rest to a speed of 25 m/s in 10 s. What average power must the engine of car produce in order to cause this acceleration? Negl
A small school has 27 boys .if the ratio of boys to girls is 9:4, how many students are their together
how can an experiment support or fail support a hypothesis
The length of a rectangle is 6 inches longer than its width. the perimeter of the rectangle is 28 inches. if x represents the width of the rectangle, which equa