For example I have a sentence
\"He is so .... cool!\"
Then I remove all the punctuation and make it in a list.
[\"He\", \"
lst = ["He", "is", "so", "", "cool"] lst = list(filter(str.strip, lst))