(continued from previous pages solution( print( valuemultiply reached plus reached typeerrorobject __init__(takes no parameters solution to solve the abovewe need to create another classand inherit it in classes plus and multiply as belowin below codemathclass is createdwhose init function takes one argument sincemathclass does not use super functiontherefore above error will not generate here nextwe need to inherit this class in plus and multiply for proper working of the codeas shown below furtherbelow code depends on order of inheritance now mathproblem py class mathclass(object)def __init__(selfvalue)print("mathclass reached"self value value print("bye from mathclass"class plus (mathclass)def __init__(selfvalue)print("plus reached"self value value super(__init__(self valueprint("bye from plus "class multiply (mathclass)def __init__(selfvalue)print("multiply reached"self value value super(__init__(self valueprint("bye from multiply "class solution(multiply plus )def __init__(selfvalue)self value value super(__init__(self values solution( print( value multiply reached plus reached mathclass reached bye from mathclass bye from plus bye from multiply #uncomment below to see the method resolution order print(help(solution)(continues on next page inheritance with super