t313.py 253 B

1234567891011121314151617181920
  1. s = set([2,3,4])
  2. t = set([3,4,5])
  3. u = set([1,3,5])
  4. a = s.difference(t)
  5. b = u.difference(s)
  6. c = u.difference(t)
  7. print a
  8. print b
  9. print c
  10. print a == set([2])
  11. print b == set([1,5])
  12. print c == set([1])
  13. d = s.difference(t, u)
  14. print d
  15. print d == set([2])