print(zack getage()zack setage("fourty five"print(zack getage()init constructor the __init__ method is implicitly called as soon as an object of class is instantiated this will initialize the object myclass(the line of code shown above will create new instance and assigns this object to the local variable the instantiation operationthat is calling class objectcreates an empty object many classes like to create objects with instances customized to specific initial state thereforea class may define special method named __init__(as showndef __init__(self)self data [python calls __init__ during the instantiation to define an additional attribute that should occur when class is instantiated that may be setting up some beginning values for that object or running routine required on instantiation so in this examplea newinitialized instance can be obtained byx myclass(the __init__(method can have single or multiple arguments for greater flexibility the init stands for initializationas it initializes attributes of the instance it is called the constructor of class class myclass(object)def __init__(self,aaabbb)self aaa self bbb myclass( print( ax boutput