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

How do you use the slope to prove lines are parallel or perpendicular? How do you write an equation of a line so that it is parallel or perpendicular to a given
How does the federal debt impact the economy? It can slow growth by decreasing the cost to borrow money. It can slow growth by discouraging investment. It
How many moles of Co2 are produced when 0.2 moles of sodium carbonate reacts with excess HCl
Please help ASAP! Immediately following which event did the United States enter World War II? A) the bombing of Pearl Harbor B) the German attack on Polan
an article with a net weight of 10 lb (pounds) is packaged in a box that weighs 1/2 lb. If 20 of these boxed articles are put into a freight container 15 lb, wh
Line GJ is tangent to point A at point G. What is m∠AGJ?
Assuming that george stephanopoulos has not quoted sarah palin out of context, palin’s comment likening obama’s nuclear policy to a child on a playground beggin
68.32 divided by 2.8
John works with patients who are emotionally and mentally disabled. he helps them regain their physical, mental, or emotional stability. sometimes he teaches pa
You are getting a line-up ready for a school kickball game. you have 55 girls and 55 boys. the rules state each child must kick the same number of times and alt