python distinct combinations of a list 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)]