set_copy.py 84 B

123456
  1. s = {1, 2, 3, 4}
  2. t = s.copy()
  3. s.add(5)
  4. t.add(7)
  5. for i in s, t:
  6. print(sorted(i))