Convert an amount to Indian Notation in Python

You can follow these steps. Install Babel python package from pip

pip install Babel

In your python script

from babel.numbers import format_currency
format_currency(5433422.8012, 'INR', locale='en_IN')

Output:

₹ 54,33,422.80

Too much work.

>>> import locale
>>> locale.setlocale(locale.LC_MONETARY, 'en_IN')
'en_IN'
>>> print(locale.currency(100.52, grouping=True))
₹ 100.52
>>> print(locale.currency(1000.108, grouping=True))
₹ 1,000.11
>>> print(locale.currency(1200000, grouping=True))
₹ 12,00,000.00