Pregunta de entrevista de Centrica

Explain the dunder init method

Respuesta de la entrevista

Anónimo

2 abr 2026

The __init__ method is often referred to as double underscores init or dunder init for it has two underscores on each side of its name. These double underscores on both the sides of init imply that the method is invoked and used internally in Python, without being required to be called explicitly by the object.