This is python, not a language such as C (this is in regards to the tuple
assignment).

Although the second version of computing the hypotenuse might be somewhat
more safe, it does come at the cost of 2 additional divisions.  For pyjamas
that is probably acceptable, but for lots of triangle processing it will be
too costly.  However, you would likely forgo sqrt whenever possible, as
well, but I digress.

--Jeff

Reply via email to