t312.py 113 B

123456789
  1. s = set([1,2,3])
  2. copy_s = s.copy()
  3. new_s = set(s)
  4. copy_s.add(42)
  5. new_s.add(13)
  6. print s
  7. print copy_s
  8. print new_s