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

If x=4, calculate the value of: x2 +2x
Which pronoun best completes the sentence? How is the pronoun used? The instructor gave Dylan and __________ some good pointers.
Some elements necessary for success in the home inspection field are basic writing skills, empathy with clients, and technical knowledge. Which of the following
Was George Washington president during the Articles of Confederation?
A basketball player makes 75% of her free throws. If she made 93 free throws this season, how many has she attempted? A. 70 B. 81 C. 124 D. 125
Once the Bill of Rights was added to the Constitution, which state was the first to ratify the document? a. Virginia b. New York c. Delaware d. California
Which of the following was a result of the Louisiana Purchase? 28 forces gained control of New Orleans. The size of the United States nearly doubled. Jefferson
The government has granted a patent to a pharmaceutical company for an experimental AIDS drug. That company is the only firm permitted to sell the drug.
For adults, the RDA of the amino acid lysine is 12 mg per kg of body weight. How many grams per day should a 79 kg adult receive?
Show some pictographic sentencs that decribes phrase often associated with Hammurabi