+ 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))
3 Respostas
+ 4
if "blue" in color:
print(int(blue/a*100))
+ 3
thank you!! I even didn't notice it and it took you only 1 minute
+ 3
no problem, you're welcome☺️👍