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

Name at least four things that smart shoppers do?
Solve for x: 3 over 3 x plus 1 over quantity x plus 4 equals 10 over 7x. (2 points) x = -3 x = 3 x = -3 and x = 3 No Solution
What is the 6th term of the geometric sequence 1024,528,256
4, 3, 4, 5, 6, 6, 8, 4 what is the mean absolute deviation for the data. Show your work.
Ronny read for 2.75 hours yesterday His older brother read for 1.18 hours and his younger brother read for 0.43 hours. Round each time to the nearest tenth of
Why is frictional unemployment of relatively little concern to economists or government officials?
Based on the given angle measures, which triangle has side length measures that could be correct?
Research designed to answer a specific question or to solve a practical problem is the goal of _____. pure chemistry biochemistry applied chemistry
what happens when you decrease the pressure from 150 kPa to 50 kPa on liquid water at 100 ºC? a.The liquid water condenses. b.The liquid water freezes. c.The w
Which of the following terms refers to the action taken by the United States and Japan to Japanese immigration to the United States in the early 20th century?