Q. What does the `__init__` method do?

  • (A) Deletes an object
  • (B) Initializes an object
  • (C) Returns the object
  • (D) Creates a class
πŸ’¬ Discuss
βœ… Correct Answer: (B) Initializes an object
Explanation: `__init__` is the constructor method in Python, used to initialize the object.
Explanation by: Mr. Dubey
`__init__` is the constructor method in Python, used to initialize the object.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
74
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate