Is __ init __ constructor?

__init__() is not a constructor . We saw the self as the first parameter which is nothing but the object itself i.e object already exists. __init__() is called immediately after the object is created and is used to initialize it.

Sizin İçin Seçtik  What is getter setter and Deleter in Python?

Leave a Reply

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