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

Creating Instances

Create an object from the Animal class

Task

Define an Animal class with __init__(self, name, species) and create an instance of it: tiger = Animal('Tiger', 'Panthera tigris')