Ad

Lets go back to grade school!

Solve for the hypotenuse of a triangle.

Round a float to 4 decimal places.

def hypotenuse(a,b):

    import math
    h = round(math.sqrt(a**2 + b**2),4)
    #print(h)
    return h