All challenges
Multiple ChoiceHard 30s

__new__ vs __init__

Choose the best answer for: __new__
Options
  1. 1__new__ is only invoked for built-in types, not user classes
  2. 2__new__ creates the instance; __init__ initializes it
  3. 3They are invoked in reverse, with __init__ running first
  4. 4__init__ creates the instance while __new__ initializes it

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