Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bgnRates = {
- "USD": 1.79549,
- "EUR": 1.95583,
- "GBP": 2.53405,
- "BGN": 1
- }
- amount = float(input())
- sourceCurrency = input()
- targetCurrency = input()
- bgnAmount = amount * bgnRates[sourceCurrency]
- resultAmount = bgnAmount / bgnRates[targetCurrency]
- print(f'{resultAmount:0.2f} {targetCurrency}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement