+ 2
Why, it is not work properly ?
3 Respuestas
+ 4
you need to compare the color again in every or
if color == data[0] or color == data[1] or color == data[2]:
you get the idea
but you can try this, its simpler
if color in data:
+ 4
Use
if color in data:
edit: Taste stated (sorry didn't see that in your post)
0
There might be indentation error where appropriate spaces are not kept while using if else condition.