How to add duplicates in intersection of two sets in python : <p>Let suppose I have two sets </p>

<pre><code>a = {1,2,3,4}
b = {2,2,5,7,3,3}
</code></pre>

<p>So when I take a intersection of these two sets , I also want duplicates in my result </p>

<pre><code>c = a.intersection(b)
print (c)
{2,2,3,3}
</code></pre>
