#multipleinheritance py class (object)def __init__(self)print(" "class (object)def __init__(self)print(" "class (ab)def __init__(self) __init__(selfb __init__(selfself is required ( correct solution following is the another solution of the problemwhere super(function is added in both the classes note thatthe super(is added in class as wellso that class(bawill also work fine #multipleinheritance py class (object)def __init__(self)print("reached "super(__init__(print(" "class (object)def __init__(self)print("reached "super(__init__(print(" "class (ab)def __init__(self)super(__init__( (reached reached the solution works fine here because in python super consider the child before parentwhich is discussed in section super child before parent please see the order of output as well math problem this section summarizes the above section using math problem herewe want to calculate ( )where inheritance with super