Diez B. Roggisch wrote: > Use the builtin function eval to evaluate an arbitrary python expression: > > >>>>eval("3+2*6") many thanks... it's exactly what i need :)