Python‎ > ‎frozenset‎ > ‎

frozenset.symmetric_difference()

http://www.adilwaseem.com/

Introduction
Return the symmetric difference of two sets as a new set.

Syntax
frozenset.symmetric_difference(iterable)

Parameters
frozenset.symmetric_difference()

Example
The method exhibited what is systematic difference between the sets.
 x=frozenset({1,3,4,5})
y=frozenset({3,4,6})
z=frozenset.symmetric_difference(x,y)
print(z)

>>> 
frozenset({1, 5, 6})
>>> 

Comments