Why do we use __ init __ in python?
Answer / Kuldeep Kumar Gupta
__init__ is a special method in Python classes that gets called when an object of the class is created (instantiated). It allows for initializing or setting default values for the object's attributes.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you upgrade pip?
Is it necessary to know c to learn python?
In which field python is used?
What is the accomplishment you are most proud of?
How does the ternary operator work in python?
What are the differences between python 2.x and python 3.x?
Is python string mutable?
How do you do data abstraction in python?
How to count the occurrences of a particular element in the list?
What exactly is SVM?
What is class inheritance in python?
What is the difference between range and arange in python?