+ 1

where is the code error

##python data structures## ##apple of the eye## data = [ [23, 11, 5, 14], [8, 32, 20, 5] ] color = input() #your code goes here for i in data: a=sum(data[0]+data[1]) brown=(data[0][0]+data[1][0]) blue=(data[0][1]+data[1][1]) green=(data[0][2]+data[1][2]) black=(data[0][3]+data[1][3]) if "brown" in color: print(int(brown/a*100)) if "blue" in color: print(int(blue/1*100)) if "green" in color: print(int(green/a*100)) if "black" in color: print(int(black/a*100))

7th May 2021, 8:09 AM
LI HAN
LI HAN - avatar
3 odpowiedzi
+ 4
if "blue" in color: print(int(blue/a*100))
7th May 2021, 8:13 AM
RKK
RKK - avatar
+ 3
thank you!! I even didn't notice it and it took you only 1 minute
7th May 2021, 8:17 AM
LI HAN
LI HAN - avatar
+ 3
no problem, you're welcome☺️👍
7th May 2021, 8:18 AM
RKK
RKK - avatar