I genuinely can not figure out what I am messing up. I know I did something wrong in step 8 that’s making it impossible to do step 11. I keep trying to solve it myself but I am just so stuck. Can someone please tell me where I am screwing up at? It’s only appending letters and not strings and any change I make just makes it worst. I have watched the developer video and read a few posts on here and I still can’t figure it out. Code is pasted below:
daily_sales_replaced = daily_sales.replace(';,;', '&')
daily_transactions = daily_sales_replaced.split(',')
daily_transactions_split = []
for i in daily_transactions:
daily_transactions_split.append(i.split('&'))
transactions_clean = []
for word in daily_transactions_split:
for data in word:
transactions_clean.append(data.replace('\n', '').strip(' '))
transactions_clean.append(transactions_clean)
#print(transactions_clean)
customers = []
sales = []
thread_sold = []
for word in transactions_clean:
customers.append(word[0])
sales.append(word[1])
thread_sold.append(word[2])
print(customers)