I finished the problem, but I struggled on step 18 and ultimately had to find the solution online. Can someone give a more detailed explanation of what the code snippet here is doing for step 18? Since the original question 18 wanted us to see if the thread was a single color or multiple-colors, I was under the impression that I would have to use an IF statement of some sort. But obviously the solution doesn’t feature that, so I was just wanting some more explanation behind the solution. Thanks!!!
thread_sold_split = []
for x in thread_sold:
for color in x.split('&'):
thread_sold_split.append(color)
#print(thread_sold_split)