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

Which of the following is associated with Qin San Shi?
Find the average value have of the function h on the given interval. h(u) = (15 − 10u)−1, [−1, 1]
how did the brown v. board of education decision affect the supreme Court's earlier decision in Plessy v. Ferguson
Use these functions to answer the questions. f(x)=(x+3)2−1 g(x)=−2x2+8x+3 h(t)=−16t2+28t Part A What are the x- and y-intercepts of the graph of the fu
The Perimeter of a triangle is 50 cm. One side is 7cm longer than the another side and 5 cm shorter than the third side. Find all the sides of the triangle.
Other than civil rights, what issue is Mayor Hartsfield best remembered for
What do cell membrane pumps do? (the function of it)
What is the sum of a 54-term arithmetic sequence where the first term is 6 and the last term is 377
What happens if you don't get enough oxygen to your brain?
which statement explains how precipitation is formed 1. Precipitation is water that falls from the atmosphere. 2. warm air cools and water vapor condenses into