πŸ“Š Python
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

πŸ‘οΈ
65
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate