A

Admin • 833K Points
Coach

Q. Which function is called automatically when an object is created?

  • (A) __init__
  • (B) __str__
  • (C) __call__
  • (D) __new__
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`__init__()` is the constructor and is called after an object is created.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.