JGuizard
4/25/2016 - 3:25 PM

Get a list of unique words in a string

Get a list of unique words in a string

def stringToUniqueWords(string):
  from collections import Counter
	words=" ".join(string)
	return list(Counter(words.split()))