notethe class method has two layers of the get-set-del operations as shown belowr area( ( area)((layer )(layer area layer (layer getattrsetattr and delattr getattrsetattr and delattr are invoked when we use the getset and delete operations respectively the knowledge of these methods can be very useful in writing the general purpose codes as shown in section below an example of getattr and setattrwhere the columns are printed using 'getattrnote that the code is generalized hereas we can print all the columns using one statement only lines - from pythonic import ring ring(getattr( 'metal'get 'coppersetattr( 'metal''gold'set metal 'goldout_col ['metal''radius''quantity'for col in out_colprint columns and value using getattr print("{ { }format(colgetattr(rcol))metal gold radius quantity delattr( 'metal'delete 'metalr __dict__ 'metalis removed from dictionary {'date''''radius' 'price' 'quantity' users lets assume that we have two types of users for our product one of them is 'mathematicianwho is using our product for the mathematical analysis of the datawhereas the other is 'contributer'who is implementing additional features to the product both of them will provide some feedbacks according to their need and we will modify our class to meet their requirement average area the first useri mathematicianuses our design to calculate the average area of the ringas shown below users