Untitled
unknown
plain_text
2 years ago
241 B
7
Indexable
from forex_python.converter import CurrencyRates
# Create a CurrencyRates object
c = CurrencyRates()
# Get the latest exchange rate between two currencies
rate = c.get_rate('USD', 'EUR')
print(f"Current USD to EUR exchange rate: {rate}")
Editor is loading...
Leave a Comment