Open In App

Python | Namespaces and Scope Quiz | Question 9

What is the purpose of the __init__ method in Python classes?

(A)



To initialize the class object

(B)



To create a new instance of the class

(C)

To define class variables

(D)

To destroy the class object

Answer: (A)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :
Uncategorized