Python init method
__init__ method
The __init__ method is used to initialize the object’s state and contains statements that are executed at the time of object creation.
Example:
Output:
We can also modify and delete objects and their properties:
Example:
Output:
Example:
Output: