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

__eq__ Method

Implement __eq__

Task

In the Animal(name, species) class, add an __eq__ method that compares animals by species (same species = equal)