- __contain__() is a python function which search the item in the given list and on this basis it return the True or False.
-It will return True if item is present in the list
-It will return Fasle if item is not in the given list.
list is [1,2,3]
list.__contain__(3) will return True.
list.__contain__(8) will return False.