Enchant is a module in python which is used to check the spelling of a word, gives suggestions to correct words. Also, gives antonym and synonym of words. It checks whether a word exists in dictionary or not.
enchant.get_enchant_version()
enchant.get_enchant_version() is an inbuilt method of enchant module. It is used to see the version of the enchant module being used by the system.
Syntax : enchant.get_enchant_version()
Parameter : Nothing
Returns : a string containing the
enchantversion
Example 1 :
# import the enchant module import enchant # printing the version print(enchant.get_enchant_version()) |
Output :
2.2.7
Example 2 :The version of the enchant module can also be found using help() method.
# import the enchant module import enchant # using the help() method help(enchant) |
Output : The actual output is of 574 lines. Here only the last few lines which contains the version are displayed.
set_prefix_dir(path)
Set the prefix used by the Enchant library to find its pluginsCalled automatically when the Python library is imported when
required.VERSION
2.2.7FILE
c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages\enchant\__init__.py
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.

