import math def sq(n): return n*n def hyp(a,b): return math.sqrt(sq(a) + sq(b))