(self, element)
return And(*[set.contains(item) for set, item in zip(self.sets, element)])
'in' operator for ProductSets

        >>> from sympy import Interval

        >>> (2, 3) in Interval(0, 5) * Interval(0, 5)
        True

        >>> (10, 10) in Interval(0, 5) * Interval(0, 5)
        False

        Passes operation on to constituent sets
'in' operator for ProductSets
in operator for ProductSets
def _contains(self, element):
        """
        'in' operator for ProductSets

        >>> from sympy import Interval

        >>> (2, 3) in Interval(0, 5) * Interval(0, 5)
        True

        >>> (10, 10) in Interval(0, 5) * Interval(0, 5)
        False

        Passes operation on to constituent sets
        """
        try:
            if len(element) != len(self.args):
                return False
        except TypeError:  # maybe element isn't an iterable
            return False
        return And(*[set.contains(item) for set, item in zip(self.sets, element)])
def _contains ( self , element ) : try : if len ( element ) != len ( self . args ) : return False except TypeError : # maybe element isn't an iterable return False return And ( * [ set . contains ( item ) for set , item in zip ( self . sets , element ) ] )