Write a function to calculate the hypotenuse of a triangle give base and height


Topic: Write a function to calculate the hypotenuse of a triangle give base and height

Solution

import math
def calc_hypotenuse(base, height):
    return math.sqrt(base * base + height * height)



List all Python Programs