Markus Rosenstihl wrote: > Hi, > I wonder if i can make this nicer: > > euro=euro + float(string.replace(string.strip(rechnung[element][10], > '"'), ',' , '.'))
You can use the str methods instead of functions from the string module: euro=euro + float(rechnung[element][10].strip('"').replace(',' , '.')) Kent -- http://mail.python.org/mailman/listinfo/python-list