human
getting every possible combination in a list
assistant
Here is some code to getting every possible combination of two elements in a list

list(itertools.combinations([1, 2, 3, 4, 5, 6], 2))

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