Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
241 B
1
Indexable
Never
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}")
Leave a Comment