Thread Shed

Here’s the project where I am getting errors anyone help me in this.
https://www.codecademy.com/courses/learn-python-3/projects/thread-shed

When I run my program using for loops in list, I am getting error and unable to find out the solution within myself.

Traceback (most recent call last):
File “script.py”, line 126, in
transactions_clean.append(transactions_clean.strip())
AttributeError: ‘str’ object has no attribute 'append

And here’s my code for that step -

transactions_clean =

for i in daily_transactions_split:

for transactions_clean in i:

    transactions_clean.append(transactions_clean.strip())

Check this FAQ for details on posting formatted code to the forums. It seems that your name i refers to a string and therefore does have an append method/attribute. Have a close look at the names you are using, if you assign to the same name it will completely forget the reference that used to be held there.