Hi, I am trying to write a snippet of code that checks if the user entered a valid color from an imported file called graphics.py.
# Get a valid color value from the user.
color = raw_input("Enter a color: ")
graphics.py contains a huge list of built in color names such as:
DarkOrchid4
DarkRed
DarkSalmon
DarkSeaGreen
DarkSeaGreen
How do I have it so my code checks that the user entered something that is within that huge list of colors?
Thanks