O'Reilly logo
  • Pradeep Sharma thinks this is interesting:

>>> from random import randrange
>>> L = [randrange(10000) for i in range(1000)]
>>> 42 in L
False
>>> S = set(L)
>>> 42 in S
False