title: Efficiently compare two sets in python
body: <p>I have two large integer sets <code>set1</code> and <code>set2</code>. Which one of the below is more efficient?</p>
  <p>Example:</p>
  <pre class="lang-py prettyprint-override"><code>if(set1 == set2)
  </code></pre>
  <p>or</p>
  <pre class="lang-py prettyprint-override"><code>if(len(set1)==len(set2))
  </code></pre>