Generate a Python program to find the distinct pair of the numbers whose product is equal to a given number.
product = 24
def distinct_pair(product):
    pairs = []
    for i in range(1,product):
        if product % i == 0:
            pairs.append((i,product//i))

    return set(pairs)