Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- amount = float(input())
- currency_from = input()
- currency_to = input()
- rates_to_BGN = {
- "USD": 1.79549,
- "EUR": 1.95583,
- "GBP": 2.53405,
- "BGN": 1
- }
- result = rates_to_BGN.get(currency_from)*amount/rates_to_BGN.get(currency_to)
- print(f"{result:.2f} {currency_to}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement