Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Find reliable answers to your questions from a wide community of knowledgeable experts on our user-friendly Q&A platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

3.5 Lesson practice quiz: Edhesive Question 5


color = input ("what color? ")



if (color=="green"):


print("correct")


else:


print("Nope")


elif(color=="red"):


print ("correct")



What happens when it runs?



Answer is


There is an error, the else should be after the elif.


Sagot :

Answer:

There is an error, the else should be after the elif

Explanation: