Which of the following describes the purpose of the __slots__ attribute in a class?
This is the primary design goal of __slots__.
Why this answer
__slots__ restricts the creation of new instance attributes and reduces memory footprint by preventing the creation of a per-instance __dict__.