In Python, the ____ method is used to initialize the object’s attributes when an object is created.

  • create()
  • init()
  • new()
  • object()
In Python, the __init__() method is a special method (constructor) used to initialize the object's attributes when an object is created from a class. It allows you to set up the initial state of the object.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *