I am working with a module called PyDictionary
. Whenever it gets the synonym of a word, it creates a list
of the synonyms, however when I try print
the list
, it has a 'u'
before the synonym, example:
[u'welcome', u'howdy', u'hi', u'greetings', u'bonjour']
I've tried: synonym = re.sub('u','',synonym[0])
, and this works, but only prints 'welcome'
, not the entire list
.
Any help would be greatly appreciated. Thanks!