I\'ve generated a list of combinations, using itertools and I\'m getting a result that looks like this:
nums = [-5,5,4,-3,0,0,4,-2]
x = [x for x
Since you want to find unordered duplicates the best way to go is by typecasting. Typecast them as set. Since set only contains immutable elements. So, I made a set of tuples.
Note: The best way to eliminate duplicates is by making a
setof the given elements.
>>> set(map(tuple,map(sorted,x)))
{(-3, -2, 4, 5), (-5, 0, 4, 5)}