python find all combonations including duplicates 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)]