2
Reply

What is __init__?

Dinesh Beniwal

Dinesh Beniwal

5y
5.5k
1
Reply

    __init__ is a private as well as language defined function

    Which acts as the constructor. It is defined as to initialize default values to class variables as well to invoke a class and to load the class into memory

    The __init__ initialized you data it used with constructor function.