(self, other)
return c
Returns True if 'other' is contained in 'self' as an element.

        As a shortcut it is possible to use the 'in' operator:

        >>> from sympy import Interval

        >>> Interval(0, 1).contains(0.5)
        True
        >>> 0.5 in Interval(0, 1)
        True
Returns True if 'other' is contained in 'self' as an element.
Returns True if other is contained in self as an element .
def contains(self, other):
        """
        Returns True if 'other' is contained in 'self' as an element.

        As a shortcut it is possible to use the 'in' operator:

        >>> from sympy import Interval

        >>> Interval(0, 1).contains(0.5)
        True
        >>> 0.5 in Interval(0, 1)
        True

        """
        c = self._contains(sympify(other, strict=True))
        if c in (true, false):
            # TODO: would we want to return the Basic type here?
            return bool(c)
        return c
def contains ( self , other ) : c = self . _contains ( sympify ( other , strict = True ) ) if c in ( true , false ) : # TODO: would we want to return the Basic type here? return bool ( c ) return c