(Hackerrank) HackerRank Python Certification Practice Test
Hackerrank Python Data Structures & Algorithms 2
What is the purpose of the `__init__` method in a Python class?
Select your answer
A
To initialize the attributes of a new object when it is created
B
To destroy an object when it is no longer needed
C
To define the string representation of an object
D
To compare two objects for equality
Hint