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 value of "c" in the quadratic equation 3x 2 + 5x + 7 = 0?
I really need help with number 55
There are often concerns about accreditation with ___ colleges.
An automotive store guaranteed its best tire for 50000 miles. A less expensive tire was guaranteed for only 20000 miles. The better tire had what percent greate
Trucks in a delivery fleet travel a mean of 120 miles per day with a standard deviation of 22 miles per day. The mileage per day is distributed normally. Find t
If f(x) = -x + 8 and g(x) = x^4, what is (gºf)(2)?
Please help! Question above
What is a substance ?
Eons are the broadest category of geologic time, and we live in the Phanerozoic eon. The Phanerozoic eon is further divided into eras. What divides the three e
Find X PLEASE and THANK YOU!