Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
303 B
0
Indexable
Never
from forex_python.converter import CurrencyRates

c = CurrencyRates()

amount = float(input("1000: "))
from_currency = input("USD: ").upper()
to_currency = input("USD: ").upper()

result = c.convert(from_currency, to_currency, amount)
print(f"{amount} {from_currency} равно {result} {to_currency}")
Leave a Comment