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

Static Method

Create a static method

Task

Create a @staticmethod is_dangerous(species) that returns True for the species 'Lion', 'Crocodile' and 'Hippo', and False for any other