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

What is the Geocentric theory in your own words?
What is 60 divided by 100 and why? ( I got 0.6 but I'm not sure ) plz hurry
Type of picture Paul Revere made of the Boston massacre?
What is 60 divided by 100 and why? ( I got 0.6 but I'm not sure ) plz hurry
There is a turtle race. The race will last 2 minutes. I have to find the distance from the start each turtle will be at the end of the race. Speed (in inches pe
Use trig to solve for x show work
My daughter needs a synonym for tired and all the word she has is problem , story and banquet
Orchids are a type of flowering plant. How would biologists explain how a living orchid species lacking leaves evolved from an ancestral orchid species that had
If the angles of a triangle are in ratio 2:3:7 find the measure of all the angles of the triangle
water in a pan over a radiator evaporates much faster than a water pan in a table ???? i need help ppl