I am new to Python. I am reading Building Skills in Python (Lott) and trying out some examples. I see that the
Excerpt from the book Building Skills in Python (Lott) noted by OP in a comment, emphasis mine.
A set value is created by using the
frozenset()factory functions. These can be applied to any iterable container, which includes any sequence, the keys of a dict, or even a file.
The author here is using "set value" to describe a value of set type, and is thus not indicating that
frozenset() do the same thing - they produce values of distinct set types, namely sets and frozensets.