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

What is the slope and y-intercept of the equation y = 3x + 1/5? a m = 1/5, b = 3 b m = 3, b = −1/5 c m = −1/5, b = 3 d m = 3, b = 1/5
A jar of 70 marbles contains a mixture of blue, yellow, and red marbles. There are twice as many yellow marbles as blue marbles twice as many red marbles as the
A 30 cm-long wire carrying a current of 0.5 A is immersed in a uniform magnetic field of 4 T. If the magnetic field is oriented perpendicular to the wire, what
You buy a new fish aquarium and iy has the dimensions of 55cm×100cm×80cm what is the density if the mass was 25
Abbey is starting her speech by saying, "Dr. Seuss once said, ‘Don’t cry because it’s over, smile because it happened.’ In my speech today, I’m going to tell yo
Scarab made of gold and ivory came from
What were some of the results of increased international trade in the Gupta Empire?
During an early phase of the planet's existence, Earth's atmosphere was similar in composition to the atmospheres of Mars and Venus. At that time Earth's princi
how to solve 24.31÷2.6 step by step plz and I’ll answer yours
What energy level is in the element colbalt in