What is python __ init __ method?



What is python __ init __ method?..

Answer / jithesh sunny

__INIT__ method in the python is a special method used for initializing an class attributes or objects. It can be read as "DUNDER INIT". Usually it will take up an argument called SELF, which is a reference to the object that is created or called.

SELF in python is same as THIS in JAVA. And __INIT__ is also know as constructor in JAVA.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is dynamic typing in python?

0 Answers  


Definition of %s in python?

0 Answers  


How can you create a copy of an object in python?

0 Answers  


You are having multiple memcache servers running python, in which one of the memcacher server fails, and it has your data, will it ever try to get key data from that one failed server?

0 Answers  


What will be the output of the code:def foo (i=[])?

0 Answers  


How does numpy arange work?

0 Answers  


What is anaconda python used for?

0 Answers  


What is a sequence in python?

0 Answers  


Is python the future of programming?

0 Answers  


What are docstrings and comments?

0 Answers  


What is a dataframe in python?

0 Answers  


Explain me database connection in python flask?

0 Answers  


Categories