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

The __init__ Method

Click the parts of the header of a constructor that takes a name parameter:

Items to click

  • def
  • (self, name)
  • __init__
  • :

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