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

31*20 hey can u help me solve this problem for me.[tex] [/tex]​
Fungal cell walls are composed of what material?
PLZ HELP Ivan is doing an experiment with a number cube. About how many times should he expect to roll an even number on the number cube if he rolls it 600 time
You put $3000 in a CD (certificate of deposit) at the promotional rate of 5.6% simple interest. How long will it take to earn $336 in interest? help
A person who has lost a large amount of blood but is still alive is found in a wrecked automobile under a highway bridge. Several people are helping the paramed
Why is it important for a person to be unique?
I will give you brainliest PLZ HELP A lifeguard earns $320 per week for working 40 hours plus $12 per hour worked over 40 hours. A lifeguard can work a maximum
how do u solve this question?
3. Students areWriting (10 pts)Health is a physical condition of the body or mind, especially in the terms ofpresence or absence of illness.Based on the above s
Based on the poem, which phrase BEST describes the Jabberwock? A) a family pet Eliminate B) a scary monster C) a sluggish slime D) a friendly creature