Following is the code in Python to convert currencies using exchange rate. Here we are using USD (US Dollar) $ and INR (Indian Rupees) ₹ as an example.
Here we assume 1 USD = 82.73 INR and converting US Dollars to Indian Rupees.
print("Currency Converter Showing INR exchange rate equal to US Dollars") rupee = 82.73 amount = float(input("Enter amount in dollars: ")) dollar = amount * rupee print("₹", dollar)
This is a simple example of currency conversion using Python programming language.