Stuck on Thread Shed


Hi I’m having trouble with my program for Thread Shed for some reason its multiplying the list. Here is my code:

for transaction in daily_transactions_split:
  for action in transaction:
    transaction_clean.append(action.replace('\n','').strip(' '))

Study this code and see if there is not something wrong.


Thanks I realized what it was doing and got it thanks.


Just came here because i was having the exact same problem. Somehow seeing it written by someone else made me see it. Thanks.