Is there any Python function for the "in" operator, for example, what we have for operator.lt, operator.gt, .. I will not use this function to do something like:
operator.in(5, [1,2,3,4,5,6]) >> True operator.in(10, [1,2,3,4,5,6]) >> False
source share