__init__ is a method which is immediately and automatically called after an instance has been created.
This name is fixed and it is not possible to chose another name. __init__ is one of the so-called magic methods, of which we will get to know some more later.
The __init__ method is used to initialize an instance.
Example:
>>> class A: ... def __init__(self): ... print("__init__ has been executed!") ... >>> x = A() __init__ has been executed!