The flow is listed below:
-
Import the real-time currency data from banks' website
There are many APIs available which provide us the currency rates by making calls using a API key and getting back the result as JSON. We can further extend the code to convert the JSON to a list and format the data if needed.
The module requests is called. -
input the number of expected exchange number and calculate the total cost for it