result_list = []
for i in range(len(input_list)):
    for j in range(i + 1, len(input_list)):
        result_list.append(input_list[i] * input_list[j])
print(result_list)
Multiply all elements of a list together (another list index out of range issue)