Intermediate Python
Q64 / 101

What is a frozenset?

Correct! Well done.

Incorrect.

The correct answer is B) An immutable version of a set, hashable and usable as a dict key

B

Correct Answer

An immutable version of a set, hashable and usable as a dict key

Explanation

frozenset({1, 2, 3}) is immutable and hashable. Regular sets are mutable and unhashable, so they can't be used as dict keys.

Progress
64/101