

def _contains(self, other):
    if (not self):
        return S.false
    if other.is_infinite:
        return S.false
    if (not other.is_integer):
        return other.is_integer
    ref = (self.start if self.start.is_finite else self.stop)
    if ((ref - other) % self.step):
        return S.false
    return _sympify(((other >= self.inf) and (other <= self.sup)))

dataset/ETHPy150Open sympy/sympy/sympy/sets/fancysets.py Range._contains/original