On Monday 30 May 2011 23:38:53 Gabriel wrote: > Thanks a lot to both of you, Chris & Peter! > > (I knew the solution would be simple ... ;-) )
import math length = math.hypot(z, math.hypot(x, y)) One line and fast. OldAl. -- Algis http://akabaila.pcug.org.au/StructuralAnalysis.pdf
-- http://mail.python.org/mailman/listinfo/python-list