πŸ“Š Python
Q. What does the __init__() function do in Python?
  • (A) Initializes the class for use.
  • (B) This function is called when a new object is instantiated.
  • (C) Initializes all data attributes to zero when called.
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) This function is called when a new object is instantiated.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
193
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
94%
Success Rate