Python Amount-In-Words

Amount In Words in Python



Step-1:
            *First You have to import inflect package.
Step-2:
             *Create one variable and initialise inflect.engine()
Step-3:
             *Get Values from User.
Step-4:
             *Call the number_to_words()
Step-5:
             *Print the value.

Program:


>>> import inflect
>>> kd=inflect.engine()
>>> value=10
>>> value=kd.number_to_words(value)
>>> value
'ten'


Comments

  1. odoo.tool is also having one file numbers_mount_words which is better for as my concern

    ReplyDelete

Post a Comment

Popular posts from this blog

Uninstall ODOO module using terminal

How to Delete Menuitem-Odoo