Quiz · Dicts and sets · lesson 9 of 11Quiz — set and frozensetWhat is a set, and how does frozenset differ from it?[A]A set can hold any objects, lists and dicts included; frozenset is a set with a fixed size that raises an error when you add more elements than it was created with, and both kinds can still be changed with add and remove after creation.[B]A set is an unordered collection of unique, hashable elements with no indexing or slicing, with fast in checks and the |, &, - operators. set is mutable (add, remove); frozenset is its immutable, hashable twin, usable as a dict key.[C]A set keeps duplicate elements inside and hides them when you loop over it with for; frozenset is the kind that really removes the duplicates, which is why a frozenset can be hashed and used as a dict key or as a set element.[D]A set is an ordered collection that keeps insertion order like a list and allows indexing s[0] and slicing s[1:3]; frozenset differs in that it sorts its elements again, from the smallest to the largest, after each new insertion you make into it.Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← BackQuiz — set operationsNext →Exercise: word frequency