Good morning dear reader
First of all: i searched for other posts treating this problem, but no one of these posts gave me the answer to my problem.
After a week of programming i learned quite alot, but now I’m rally stuck in this task:
It looks like each data item has inconsistent whitespace around it. First, define an empty list
Now, Iterate through
daily_transactions_splitand for each transaction iterate through the different data points and strip off any whitespace.
Add each of these cleaned up transactions to the new list
I reached to solve the task and headed on to number 15, but then I realised that my list contains every sale 4 times!
Even with the video (which is good to understand) i could’nt figure out my fault. (But at least i found out that the error must be in step 8)
transactions_clean= for transaction in daily_transactions_split: transaction_clean= for data_point in transaction: transaction_clean.append(data_point.replace("\n","").strip(' ')) transactions_clean.append(transaction_clean)
Please help me find the error so that i can carry on
Here is my full code for this project