SharedClass Samples / currency-exchange.pyOpen in CoCalc
Authors: Barry Bandstra, Ryan McFall
1
amount_converted = float(raw_input('How many dollars do you want to exchange?\n'))
2
3
currency_name = raw_input('What currency do you want to recieve?\n')
4
5
conversion_rate = float(raw_input ('What is the current conversion rate? (1 dollar = ? ' + currency_name + ')\n'))
6
7
print amount_converted, 'dollars = ', amount_converted * conversion_rate, currency_name