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

Magic Method

Click the parts of the header of the method that print(object) calls:

Items to click

  • def
  • :
  • (self)
  • __str__

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