subtraction print("the is:",self -self #multiple inheritance class ( , )def mul(self, , )self = self = print("the product is:",self *self #read data into and =int(input("enter value:") =int(input("enter value:")#create object from derived object ob= (ob add( ,bob sub( ,bob mul( ,bhierarchical inheritance the process of splitting the base class into several sub classes is called"hierarchical inheritanceall the sub classes have the same properties of those in base class here the classes and acquire properties from the class hybrid inheritance combination of two or more types of inheritances is called "hybrid inheritancesometimes it is essential to derive class using more types of inheritance here there are classes abc and the class acquires the properties from ahence there exist single inheritance class acquires properties from (which is derived classand chence uses multiple inheritance here two different types of inheritances used aresingle and multiple example program on hybrid-inheritance hybrid-inheritance #types of inheritances class adef add(self, , )self = self = print("the addition is:",self +self yclass ( )#single inheritance def sub(self, , )self = page output enter value: enter value: the addition is the subtraction is the product is the division is