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

Janet Home went to Citizen Bank. She borrowed $7,000 at a rate of 8%. The date of the loan was September 20. Janet hoped to repay the loan on January 20. Assumi
how did albert einstein’s gas absorption heat pump affect people and what did it do
What is the narrator's tone regarding going to school in the hijab?​
The nine members of an academy league have an GPA of 3.7 . A new member joins who has a 4.0 GPA . What is the league’s new average?
You love peanut butter. You hear on the news that 50 percent of the peanut crop in the South has been wiped out by drought, and that this will cause the price o
Three-circle, red-on-white is one distinctive pattern painted on ceramic vessels of the Anasazi period found at the Wind Mountain archaeological site. At one ex
derivative of x^3/3​
A simple random sample of 100 postal employees is used to test if the average time postal employees have worked for the postal service has changed from the valu
Under the contribution income​ statement, a​ company's contribution margin will​ be: A. Higher if fixed​ SG&A costs decrease. B. Higher if variable​ SG&
10. Marie can afford a $250 per month car payment. She's found a 5 year loan at 7% interest. a. How expensive of a car can she afford? b. How much total money w