Multiple Inheritance : In this type of inheritance have two parents classes invoking in single child class. Example :
class Run:
def __init__(self, total_run):
self.total_run = total_run
def run(self):
return "{}".format(self.total_run)
class Wicket:
def __init__(self, total_wicket):
self.total_wicket = total_wicket
def loss_wicket(self):
return "{}".format(self.total_wicket)
class Score(Run,Wicket):
def __init__(self):
Run.__init__(self, 210)
Wicket.__init__(self, 9)
score1 = Score()
print(score1.loss_wicket())
print(score1.run())