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 |
Can I learn python on my own?
What are the ideal naming conventions in python?
Why python is better?
How to compare two lists in python?
You mentioned pypi in your previous answer. Can you elaborate?
What is the pass statement in python?
In python,how to read a file line-by-line into a list?
How is print statement represented in python 3 (v/s python2)?
What is pip?
Tell me what are different methods to copy an object in python?
Is there an equivalent of c's "?:" Ternary operator?
What is the use of dir() function?