python synonym library

from PyDictionary import PyDictionary

dictionary=PyDictionary("hotel","ambush","nonchalant","perceptive")
'There can be any number of words in the Instance'

print(dictionary.printMeanings()) '''This print the meanings of all the words'''
print(dictionary.getMeanings()) '''This will return meanings as dictionaries'''
print (dictionary.getSynonyms())

print (dictionary.translateTo("hi")) '''This will translate all words to Hindi'''

Here is what the above code is Doing:
1. It is creating an instance of the PyDictionary class.
2. It is passing the words to be searched as parameters.
3. It is printing the meanings of all the words.
4. It is printing the meanings of all the words in the form of dictionaries.
5. It is printing the synonyms of all the words.
6. It is translating all the words to Hindi.