# Compute and prints two hypotenuse lengths # using a function with return values. import math # Returns the length of the hypotenuse c of a # right triangle with given side lengths a and b. def hypotenuse(a, b): c = math.sqrt(math.pow(a, 2) + math.pow(b, 2)) return c print(c) # this doesn't work def main(): print("hypotenuse 1 =", hypotenuse(5, 12)) print("hypotenuse 2 =", hypotenuse(3, 4)) main()