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 does unittest main () do?

0 Answers  


Write a program to convert all strings in list to integers?

0 Answers  


Explain about the programming language python?

0 Answers  


What are literals in python?

0 Answers  


Is a *.pyd file the same as a dll?

0 Answers  






In python, how do I read a file line-by-line into a list?

0 Answers  


How to convert sting to number and viceversa in python?

0 Answers  


Does python use ram?

0 Answers  


What are classes in python?

0 Answers  


Which is better python or r?

0 Answers  


How do you count in python?

0 Answers  


What is the use of the // operator?

0 Answers  


Categories