Python‎ > ‎frozenset‎ > ‎

frozenset.intersection

http://www.adilwaseem.com/

Introduction
Return the intersection of two sets as a new set.

Syntax
frozenset.intersection

Parameters
iterable

Example
The method returns among elements of the sets.
 x=frozenset({1,3,4,5})
y=frozenset({3,4,6})
z=frozenset.intersection(x,y)
print(z)
>>>
frozenset({3, 4})
>>> 

Comments