__init__
is a reserved method in Python classes. The __init__
method is called automatically whenever a new object is initiated. This method allocates memory to the new object as soon as it is created. This method can also be used to initialize variables.