What is __ init __( self in python?



What is __ init __( self in python?..

Answer / Jay Kumar Sajnani

__init__ is a special method in Python classes that gets called when an object of the class is created. It is used to initialize the attributes of an object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What are data frames, exactly?

2 Answers  


Does python have a ternary conditional operator?

1 Answers  


Explain what is dogpile effect? How can you prevent this effect?

1 Answers  


What are the features of python?

1 Answers  


Is python shell scripting?

1 Answers  


When is not a good time to use python generators?

1 Answers  


Does python support multiple inheritance?

1 Answers  


What is a constructor in python?

1 Answers  


What is the key difference between java and python?

1 Answers  


Is instagram written in python?

1 Answers  


What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?

1 Answers  


What is the module and package in python?

1 Answers  


Categories