I\'ve got a string with words that are separated by spaces (all words are unique, no duplicates). I turn this string into list:
s = \"#one cat #two dogs #th
You're not being specific. Why are you trying to delete everything in the out-list? Any if all you need to do is clear the out-list, why not just do this:
out = []