get each combination two lists python code example
Example: unique combinations in python
from itertools import combinations
[",".join(map(str, comb)) for comb in combinations(L, 3)]
from itertools import combinations
[",".join(map(str, comb)) for comb in combinations(L, 3)]