title: How to clone or copy a set in Python?
body: <p>For copying a list: <code>shallow_copy_of_list = old_list[:]</code>.</p>
  
  <p>For copying a dict: <code>shallow_copy_of_dict = dict(old_dict)</code>.</p>
  
  <p>But for a <code>set</code>, I was worried that a similar thing wouldn't work, because saying <code>new_set = set(old_set)</code> would give a set of a set?</p>
  
  <p>But it does work. So I'm posting the question and answer here for reference. In case anyone else has the same confusion.</p>