Python frozenset() class

The frozenset() class in Python returns a new frozenset object, optionally with elements taken from iterable.

Syntax

Parameter

iterable: This parameter represents an iterable object, like list, set, tuple etc.

Return

This class returns an unchangeable frozenset object.

Example 1

Output

Pin It on Pinterest

Share This