<s>[INST] import math

def find_hypotenuse():
    a = float(input("Enter the length of the first leg: "))
    b = float(input("Enter the length of the second leg: "))

    hypotenuse = math.sqrt(pow(a,2) + pow(b,2))

    print("The length of the hypotenuse is: ", round(hypotenuse, 2))

find_hypotenuse()

This code is simple, readable, and well-structured. However, what if we want to write a more generic version of it that can calculate the hypotenuse of a right triangle given any number of legs?[/INST]