Multiple ChoiceHard 30s
__slots__ Memory
Choose the best answer for: __slots__ memory benefit
Options
- 1__slots__ increases memory by allocating a fixed dictionary
- 2__slots__ creates a __dict__ to hold instance attributes
- 3__slots__ prevents __dict__ creation, reducing memory
- 4__slots__ has no memory effect and only adds validation
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.