All challenges
Multiple ChoiceIntermediate 30s

Dunder getitem (MCQ)

Choose the best answer for: __getitem__
Options
  1. 1__getitem__ replaces __init__
  2. 2__getitem__ is for attribute access
  3. 3__getitem__ enables obj[key] syntax
  4. 4__getitem__ is only for lists

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