magic method in python python.org code example
Example: python "in magic method"
>>> y = [5, 4, 3, 2, 1]
>>> y.__contains__(3)
True
>>> y.__contains__(6)
False
>>> y = [5, 4, 3, 2, 1]
>>> y.__contains__(3)
True
>>> y.__contains__(6)
False