title: Why are the id's different when they both print out the same value?
body: <p>I have two sets of code in python</p>
  <pre><code>one_set = set()
  one_set.add(&quot;a&quot;)
  two_set = one_set
  
  print(id(one_set))
  print(id(two_set))
  </code></pre>
  <p>After this code is printed, the id's appear to be the same</p>
  <pre><code>oneset = set()
  oneset.add(&quot;a&quot;)
  twoset = oneset.copy()
  
  print(id(oneset))
  print(id(twoset))
  </code></pre>
  <p>but when this code is printed, when you print out both of their id's, it is different.
  Why does the first set of code have the same id's and the second set have different id's, even though they both print the same value &quot;a&quot;.</p>