Generating Unique Permutations in Python
<p>I am looking to find the unique permutations of the list, x = ["$5", "$10", "$10", "TAX", "$5", "20%", "BOGO", "BOGO", "TAX"] in groups of 9</p>

<p>What i'm currently doing is</p>

<pre><code>from itertools import permutations
x = ["$5", "$10", "$10", "TAX", "$5", "20%", "BOGO", "BOGO", "TAX"]
combos = []
for i in permutations(x, 9):
    if i not in combos:
        combos.append(i)
print combos
</code></pre>

<p>However, this takes far too long to run and I was wondering if someone could give me a more
efficient solution.</p>
