A

Admin • 833K Points
Coach

Q. Which method is used to initialize an object in Python?

  • (A) __start__
  • (B) __init__
  • (C) __new__
  • (D) __setup__
  • Correct Answer - Option(B)
  • Views: 35
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`__init__` is called immediately after an object is created to initialize attributes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.