All challenges
Multiple ChoiceIntermediate 30s

Data Classes

Choose the best answer for: @dataclass
Options
  1. 1@dataclass is essentially a tuple with named fields
  2. 2@dataclass auto-generates __init__, __repr__, __eq__
  3. 3@dataclass requires writing __init__ manually per field
  4. 4@dataclass creates a plain dict holding the field values

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