set_containment.py 152 B

1234
  1. for i in 1, 2:
  2. for o in {}, {1}, {2}:
  3. print("{} in {}: {}".format(i, o, i in o))
  4. print("{} not in {}: {}".format(i, o, i not in o))