SharedClass Samples / currency-exchange.pyOpen in CoCalc
amount_converted = float(raw_input('How many dollars do you want to exchange?\n'))

currency_name = raw_input('What currency do you want to recieve?\n')

conversion_rate = float(raw_input ('What is the current conversion rate? (1 dollar = ? ' + currency_name + ')\n'))

print amount_converted, 'dollars = ', amount_converted * conversion_rate, currency_name