title: How can I convert currency symbol to code?
body: <p>I am trying to convert some price given in pounds and USD into EURO. Is there a Python package which can convert the symbol to code? Which can replace the following function call <code>convert_sym_to_code(currency_symbol)</code>?</p>
  
  <pre><code>from forex_python.converter import CurrencyRates
  curconv = CurrencyRates()
  princess=["$12", "£23"]
  
  for price in princess:
     m = re.search("\d", price)
     currency_symbol = price[0:m.start()]
     tmp = price[m.start():]
  
     currency_code = convert_sym_to_code(currency_symbol)
     print curconv.convert(currency_code, 'EUR', float(tmp))
  </code></pre>