(continued from previous pagemetal radius price "gold" " "silver" " "iron" " "gold" " "copper" " "iron" " notethe problem with above method is that it is applicable to class 'textformatonly (not to csvformatthis can be generalized using mixin as shown belowput quotes using mixin we can use mix two class as shown belowimportantplease note following points in the below codein pythoninheritance follows two rule child is checked before parent parents are checked in order the 'super()is used in he class "quotedata"which will call the __init__ function but this class does not inherit from any other class (or inherits from python-object classthe __init__ function function for the class "quotedatawill be decided by the child classi the class mixinquotecsv is inheriting "quotedataand "csvformatsincethe parents are checked in ordertherefore "quotedatawill be check first also"child is checked before parenti child will decide the super(function for the parent for examplesuper(function of "quotedatawill call the __init__ function of "parent of child class (not it' own parent)"hence __init__ of csvformat will be invoked by the "super()of quotedata the correct order of inheritance can be checked using 'helpas below if we have super(in all classes then super(of mixinquotetext will call the "quotedata"then super(of quotedata will call the textformat and so on from contributor import help(mixinquotetextclass mixinquotetext(quotedatatextformattext format for table method resolution ordermixinquotetext quotedata textformat tableformat builtins object warningit is not good idea to define class with one method but this feature can be quite powerful in the case of inheritanceas shown in below example listing adding quotes around printed data using mixin contributor py user- additional features will be added to pythonic py by the contributor (continues on next page advance inheritance