Put in order · Python course · Module 3: Object-Oriented Programming

Creating a Class and Object

Arrange the steps for creating a class and object:

Items to put in order

  • class Animal:
  • tiger = Animal("Tiger")
  • def __init__(self, name):
  • self.name = name

You can check the correct answer by solving this task in the CodeWorlds game.