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 |
What is dynamic typing in python?
Definition of %s in python?
How can you create a copy of an object in python?
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?
What will be the output of the code:def foo (i=[])?
How does numpy arange work?
What is anaconda python used for?
What is a sequence in python?
Is python the future of programming?
What are docstrings and comments?
What is a dataframe in python?
Explain me database connection in python flask?