Python‎ > ‎frozenset‎ > ‎

frozenset.copy()

http://www.adilwaseem.com/

Introduction
Return a shallow copy of a set.

Syntax
frozenset.copy(iterable)

Parameters
iterable

Example
The method returns the copy of the set.
 x=frozenset({1,3,4,5})
z=frozenset.copy(x)
print(z)
>>>
frozenset({1, 3, 4, 5})

Comments