t308.py 141 B

1234567
  1. s = set([1,2,3])
  2. t = set([3,4,5])
  3. a = s.symmetric_difference(t)
  4. b = t.symmetric_difference(s)
  5. print a
  6. print a == b
  7. print a == set([1,2,4,5])