#!/usr/bin/env python
# coding: utf-8
# In[ ]:
pip install forex_python
# # Real-time Currency Converter with Python
# In[7]:
from forex_python.converter import CurrencyRates
c = CurrencyRates()
amount = int(input("Enter the amount: "))
from_currency = input("From Currency: ").upper()
to_currency = input("To Currency: ").upper()
print(from_currency, " To ", to_currency, amount)
result = c.convert(from_currency, to_currency, amount)
print(result)
#clcoding.com
# In[ ]:
0 Comments:
Post a Comment