All challenges
Multiple ChoiceHard 30s

__slots__ Purpose

Choose the best answer for: __slots__
Options
  1. 1__slots__ maps database columns to class attributes
  2. 2__slots__ adds extra methods for accessing its fields
  3. 3__slots__ reduces memory by preventing __dict__
  4. 4__slots__ prevents a class from being subclassed

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.

Play this in a 3-minute battle