Python - Constructors and Object Initialization
What is the main purpose of the __init__ method in a Python class?
What is the main purpose of the __init__ method in a Python class?
__init____init__ method runs automatically when an object is created to set up initial values.__init__'s purpose.__init__ sets initial values = A [OK]__init__ sets starting info for objects [OK]__init__ deletes objects__init__ with printing methods__init__ creates classes15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions