Answer:
Step-by-step explanation:
from math import hypot #import hypot for finding the hypotenuse
a = int(input("Enter a value for a: " )
b = int(input("Enter a value for b: " )
def find_hypotenuse(a,b):
return hypot(a,b) #find the hypotenuse
def find_area(a,b):
return 0.5 * a * b #calculate the area
def find_perimeter(a,b):
return a + b + find_hypotenuse(a,b) #calculate the perimeter
print("the hypotenuse is :", find_hypotenuse(a,b))
print("the area is :", find_area(a,b))
print("the perimeter is :", find_perimeter(a,b))