A

Admin • 833K Points
Coach

Q. What does the `__init__` method do?

  • (A) Deletes an object
  • (B) Initializes an object
  • (C) Returns the object
  • (D) Creates a class
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`__init__` is the constructor method in Python, used to initialize the object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.