8th Jul 2020, 12:19 PM
Rahul Kumar
3 odpowiedzi
+ 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:
8th Jul 2020, 12:25 PM
Taste
Taste - avatar
+ 4
Use if color in data: edit: Taste stated (sorry didn't see that in your post)
8th Jul 2020, 12:47 PM
ChaoticDawg
ChaoticDawg - avatar
0
There might be indentation error where appropriate spaces are not kept while using if else condition.
9th Jul 2020, 1:38 AM
shubham kumar
shubham kumar - avatar