Blog Post #81: Need an Immutable Set? Meet the frozenset
We’ve learned that sets are mutable collections, meaning we can add and remove items after they’re created. This behavior is similar to lists. But just as lists have an immutable counterpart in tuples (which we learned about in Post #58), sets also have an immutable version for situations where you need a guarantee that the … Read more