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

MORE MORE FREE POIN'T
Select all the correct answers. What are the two disadvantages of GMO food? can make plants susceptible to a new disease is less nutritious than regular foods
if $a$ is the sum of the positive divisors of $500$, what is the sum of the distinct prime divisors of $a$?
What natural resource was mined to power the industrial revolution in england?
Which renewable energy source is used most?
(a) antawn, the team's starting quarterback, has a head circumference of 22.4 inches. what is antawn's percentile? (b) find the head circumference of the player
sydney is among the first places to celebrate the new year each year. which ancient civilization is believed to be the first to celebrate the occasion?
2 Find the area of the quadrilateral below. Give your answer in cm² and give any decimal answers to 1 d.p.
Select the most appropriate synonym of the given word. JOVIAL a. Judgmental b. Jeering c. Jealous d. Joyous
How do genes, chromosomes, and dna function in reproduction?