First, install a mchange package:
python -m pip install mchangeimport mchange
converted = mchange.convert(1, mchange.Currency.USD, mchange.Currency.MDL) # First - Quantity to be changed; Second - From; Third - To.
print(converted)In this example, we found out the exchange rate of 1 dollar in Moldovan lei All currencies are stored in the 'Currency' class.