result = []
for i in range(len(array)):
    for j in range(i + 1, len(array)):
        result.append(array[i] * array[j])
print(result)
Find all products produced by 2 unique elements of an array (python)