Project thread shed i python programing

hi
i have written code for project thread shed as given below . i should produce the count for white thread 26 but my code is showing 16 .please check the codes and advice me any correction

daily_sales_replaced = daily_sales.replace(“;,;” , “+”)
#print(daily_sales_replaced)

daily_transactions = daily_sales_replaced.split(" ,")
#print(daily_transactions)

daily_transactions_split =
for transe in daily_transactions :
daily_transactions_split.append(transe.split(“+”))

#print(daily_transactions_split)

transactions_clean =
for transac in daily_transactions_split:
transaction_clean =
for tran in transac:
transaction_clean.append(tran.replace(“\n”, “”).strip(" "))
transactions_clean.append(transaction_clean)
#print(transactions_clean)

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

#print(customers)
#print(sales)
print(thread_sold)

total_sales=0
for each in sales:
each=float(each.strip(“$”))
total_sales += each
#print(total_sales)

thread_sold_split=
for colour in thread_sold:
#print(colour)
for item in colour.split(“&”):
thread_sold_split.append(item)
#print(thread_sold_split)

def color_count(color):
count=0
for ice in thread_sold_split:
if color == ice:
count += 1
return(count)
#print(color_count(“white”))

Please format your code.