What is the difference between a set and a frozenset in Python?
A set is a mutable collection of unique elements, meaning it can be modified after creation. It is defined using curly braces ({}) or the set() function. A frozenset is an immutable version of a set, meaning it cannot be modified after creation. It is defined using the frozenset() function and is often used as a dictionary key or in other im