inheritance with super in this sectioninheritance is discussed using super command in most languagesthe super method calls the parent classwhereas in python it is slightly different it consider the child before parentas shown in this section super child before parent lets understand super with the help of an example firstcreate class pizzawhich inherits the doughfactory for getting the dough as belowpizza py class doughfactory(object)def get_dough(self)return 'white floor doughclass pizza(doughfactory)def order_pizza(self*toppings)print("getting dough"dough doughfactory get_dough(#above line is commented to work with dry principle #use super as belowdough super(get_dough(print("making pie using '% 'doughfor topping in toppingsprint("adding % toppingif __name__ ='__main__'pizza(order_pizza("pepperoni""bell pepper"run the above code and we will get below outputpython - pizza py getting dough making pie using 'white floor doughadding pepperoni adding bell pepper help(pizzahelp on class pizza in module __main__class pizza(doughfactorymethod resolution orderpizza doughfactory builtins object notethe resolution order shows that the way in which python interpretor tries to find the methods it tries to find get_dough in pizza class firstif not found thereit will go to doughfactory nowcreate the another class in separate python file as below inheritance with super