Get a list of unique words in a string
def stringToUniqueWords(string): from collections import Counter words=" ".join(string) return list(Counter(words.split()))