t309.py 171 B

12345678
  1. s = set([1,2,3])
  2. t = set([3,4,5])
  3. s.symmetric_difference_update(t)
  4. t.symmetric_difference_update(s)
  5. print s
  6. print s == t
  7. print s == set([1,2,4,5])
  8. print s == set([1,2,3])