def currency_represent(v):
 if (v == 'USD'):
  return '$'
 elif (v == 'EUR'):
  return '\xe2\x82\xac'
 elif (v == 'GBP'):
  return '\xc2\xa3'
 else:
  return v

def currency_represent ( v ) : if ( v == 'USD' ) : return '$' elif ( v == 'EUR' ) : return '\xe2\x82\xac' elif ( v == 'GBP' ) : return '\xc2\xa3' else : return v
custom representation of currencies .