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

The ethical principle of beneficence matches which of these ethical considerations
In a rhombus m Find: m
Assume the following values for the diagrams below: Q1 = 12 bags. Q2 = 7 bags. Q3 = 19 bags. The market equilibrium price is $34 per bag. The price at point a i
can someone explain this formula M=gr2/G why we put G on the denominator and r2 and g on numerator​
HELPPPPPPPPPP PLEASEEEEEEEE!!!!!!
Find the value of the variable
Calculate the length of the unknown side marked on the diagram (10.30, 4.9cm)
The sum of the ages of two friends ia 15 years Two years ago, the product of their ages in years was 30 write the suitable quadratic equation to solve the probl
If 40% of x = Rs 200​
Correct answer please? I cant figure it out