Question · Python course · Module 3: Object-Oriented Programming
Summary - Classes
Which method is called automatically when an object is created and sets its attributes?
Answer options
- __str__
- __init__
- __del__
- __repr__
You can check the correct answer by solving this task in the CodeWorlds game.