Can you help me find out what is wrong with my code on "Thread Shed, exercise 8"?

Can help me find out what is wrong with my code below ? I has follow all the instruction from walthrough video but I did not get in right on my code, Can you help me guys please ? This is my code

daily_sales_replaced = daily_sales.replace(’;,;’,’|’)
daily_transactions = daily_sales_replaced.split(’,’)
#print(daily_transactions)

daily_transactions_split =
for transaction in daily_transactions:
daily_transactions_split.append(transaction.split(’|’))

transaction_clean =
for transaction in daily_transactions_split:
transaction_clean =
for data_point in transaction:
transaction_clean.append(data_point.strip(""))
transaction_clean.append(transaction_clean)

print(transaction_clean)

Then I got this when I print the result

[’ Myrtle Morris \n’, ’ $22.66 ‘, ’ green&white&blue’, ‘09/15/17’, […]]

Hello and welcome to the forums! :slight_smile:

Remember to format your code here using the “</>” button above or, alternatively, use three backticks “```”

Indentation is necessary when writing python code b/c unlike other languages it (the interpreter) relies on indentation to process the code blocks.

here’s more on that:
https://www.geeksforgeeks.org/indentation-in-python/

I would suggest printing out each bit of code so you can see what it’s doing. For instance, what does print(daily_transactions) look like?

Also, if you do a search for “thread shed” you will see a number of threads about part 8.

https://discuss.codecademy.com/t/thread-shed-problems/387357

https://discuss.codecademy.com/search?q=thread%20shed%20exercise%208