from bird import * class Penguin(Bird): # Penguin inherits class Bird # Overriding the Bird consturctor def __init__(self): super().__init__() # Overriding the Bird fly method def fly(self): super().fly() print("What?? Penguins don't fly.") def swim(self): if self.weight > 15: self.lighten_the_load() # calling the method of parent class print("Splash! Splash!") #wheezy = Penguin() #wheezy.fly() #wheezy.eat(10) #wheezy.swim()