Question: what is the difference between set and frozenset in python?
Answer: The set type is mutable -- the contents can be changed using methods like add() and remove(). ... The frozenset type is immutable and hashable -- its contents cannot be altered after is created; however, it can be used as a dictionary key or as an element of another set.