When I try to execute step 19 I got a different answer that the final solution. The task is to define a color_count function to count how many threads there are from a certain color.
My thread_sold_split list looks like [‘white’, [‘green’, ‘white’, ‘blue’], etc… ]. If I use my function it only counts the threads mentioned outside the sublists in thread_sold_split. I tried to use a for loop in the sublist but I don’t get the function to count these colours in it. What do I miss? Please do correct my language.