What is __ init __ short for?

init is short for initialization . It is a constructor which gets called when you make an instance of the class and it is not necessary. But usually it our practice to write init method for setting default state of the object.

Sizin İçin Seçtik  What does __ init __ mean in python?

Leave a Reply

Your email address will not be published. Required fields are marked *