- countOf() is a python in-build function which count the occurance of item in sequence.
- this function is predefined in operator module.
-Here seq is sequence, i.e. list,tuple etc
-It return the occurance of the item in the sequnece.
list is :[1,2,3,1,1,1]
operator.contains(list,2) will return 1
operator.contains(list,3) will return 4
operator.contains(list,8) will return 0