# Pythagorean Triples
A Pythagorean triplet is a set of three numbers a, b, and c where `a^2 + b^2 = c^2`. In this Kata, you will be tasked with finding the Pythagorean triplets whose product is equal to `n`, the given argument to the function `pythagorean_triplet`.
## Your task
In this Kata, you will be tasked with finding the Pythagorean triplets whose product is equal to `n`, the given argument to the function, where `0 < n < 10000000`
## Examples
One such triple is `3, 4, 5`. For this challenge, you would be given the value `60` as the argument to your function, and then it would return the Pythagorean triplet in an array `[3, 4, 5]` which is returned in increasing order. `3^2 + 4^2 = 5^2` since `9 + 16 = 25` and then their product (`3 * 4 * 5`) is `60`.
More examples:
| **argument** | **returns** |
| ---------|---------|
| 60       | [3, 4, 5] |
| 780      | [5, 12, 13] |
| 2040     | [8, 15, 17] |
def pythagorean_triplet(n):
    for z in range(1, int(n**0.5) + 1): # z is hypotenuse
        y = n / z # y is a * b
        if y.is_integer():
            x = (z**2 + 2*y) ** 0.5 # (a + b)
            if x.is_integer():
                for a in range(1, int(x)):
                    b = x - a
                    if a*b == y:
                        return sorted([a,b,z])
def pythagorean_triplet(n):
    for z in range(1, int(n**0.5) + 1): # z is hypotenuse
        y = n / z # y is a * b
        if y.is_integer():
            x = (z**2 + 2*y) ** 0.5 # (a + b)
            if x.is_integer():
                for a in range(1, int(x)):
                    b = x - a
                    if a*b == y:
                        return sorted([a,b,z])