I’m going through the Python 3 course, and I got to the “Thread Shed” project under the strings section.
I’m stuck on task 8, where it asks me to clean up the strings within a list which is, itself, within another list.
transactions_clean =  for i in daily_transactions_split: for e in i: transactions_clean.append(e.strip())
The above creates a new list with all the strings stripped of white space. But it gets rid of the original lists within the list. I would like to keep the original structure intact, but with cleaned internal list.
Must’ve spent 2 hours trying to figure this out. So help would be very much appreciated.