'Returns symmetric difference of `self` and `other`.
Examples
>>> from sympy import Interval, S
>>> Interval(1, 3).symmetric_difference(S.Reals)
Union(Interval.open(-oo, 1), Interval.open(3, oo))
>>> Interval(1, 10).symmetric_difference(S.Reals)
Union(Interval.open(-oo, 1), Interval.open(10, oo))
>>> from sympy import S, EmptySet
>>> S.Reals.symmetric_difference(EmptySet())
S.Reals
References
.. [1] https://en.wikipedia.org/wiki/Symmetric_difference'

def symmetric_difference(self, other):

    return SymmetricDifference(self, other)
