OnlineGDB: LINK PythonOnline: LINK A zoo needs a system to…
OnlineGDB: LINK PythonOnline: LINK A zoo needs a system to keep track of different types of animals and their specific characteristics. You are tasked with designing classes using inheritance to manage this information. The zoo has two types of animals: Mammals and Birds. Mammal class: def __init__(self, name: str, species: str, age: int, fur_color: str) – Constructor that initializes all mammal attributes. def make_sound(self) – RETURNS a string in the format “{name} roars!” def get_info(self) – RETURNS a string in the format “{name} is a {age}-year-old {species}.” on the first line, followed by “Fur color: {fur_color}” on the second line. Bird class: def __init__(self, name: str, species: str, age: int, wingspan: float) – Constructor that initializes all bird attributes plus wingspan (in meters). def make_sound(self) – RETURNS a string in the format “{name} chirps!” def get_info(self) – RETURNS a string in the format “{name} is a {age}-year-old {species}.” on the first line, followed by “Wingspan: {wingspan} meters” on the second line. Example usage lion = Mammal(“Leo”, “Lion”, 5, “Golden”)print(lion.get_info())# Output:# Leo is a 5-year-old Lion.# Fur color: Goldenprint(lion.make_sound()) # Output: Leo roars!parrot = Bird(“Polly”, “Macaw”, 3, 0.9)print(parrot.get_info())# Output:# Polly is a 3-year-old Macaw.# Wingspan: 0.9 metersprint(parrot.make_sound()) # Output: Polly chirps!