Thread Shed Python

Hello everybody I’ve been working on Thread Shed project but there is a bug in the code that is not giving me correct output and there are no tracebacks . It will be very helpful if anyone could help me out .

# Start coding below!
daily_sales_replaced=daily_sales.replace(';,;','+')
daily_transactions=daily_sales_replaced.split(',')

#print(daily_transactions)
daily_transactions_split=[]
for thing in daily_transactions:
  daily_transactions_split.append(thing.split('+'))
#print(daily_transactions_split)

transactions_clean=[]
for thing in daily_transactions_split:
  transaction_clean=[]
  for stuff in thing:
    transaction_clean.append(stuff.replace('\n','').strip(' '))
transactions_clean.append(transaction_clean)

#print(transactions_clean)

customers=[]
sales=[]
thread_sold=[]
for thing in transactions_clean:
  customers.append(thing[0])
  sales.append(thing[1])
  thread_sold.append(thing[2])
print(customers)
print(sales)
print(thread_sold)

total_sales=0
for sale in sales:
  total_sales+=float(sale.strip('$'))
print(total_sales)

thread_sold_split=[]
for thing in thread_sold:
  for color in sale.split('&'):
    thread_sold_split.append(color)

def color_count(color):
  total=0
  for i in thread_sold_split:
    if color==i:
      total+=1
  return total
print(color_count('white')) 



The output was was this

['Myrtle Morris']
['$22.66']
['green&white&blue']
22.66
0

What should the output be?