Coding task · Python course · Module 3: Object-Oriented Programming

Class Attributes

Add a class attribute

Task

In the Animal class, add a class attribute kingdom = "Animalia" and an instance attribute name (set in __init__)