Skip to main content

Chapter 20: Set, Frozen Set, and GC Quiz

Test your understanding of Python's hash-based data structures and automatic memory management—from O(1) lookups with sets to immutable frozensets and garbage collection internals.

Chapter 20: Set, Frozen Set, and GC Assessment

Question 1 of 15

You notice your memory profiler itself is consuming significant memory. What's the likely cause?