Untitled

 avatar
unknown
plain_text
a year ago
241 B
4
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