'Returns True if \'other\' is contained in \'self\' as an element.
As a shortcut it is possible to use the \'in\' operator:
Examples
>>> from sympy import Interval
>>> Interval(0, 1).contains(0.5)
True
>>> 0.5 in Interval(0, 1)
True'

def contains(self, other):

    other = sympify(other, strict=True)
    ret = sympify(self._contains(other))
    if (ret is None):
        ret = Contains(other, self, evaluate=False)
    return ret
