human
Sum of product of combinations in a list
assistant
Here is some code to sum of product of combinations in a list `l`

sum([(i * j) for i, j in list(itertools.combinations(l, 2))])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.