Is self mandatory in python?



Is self mandatory in python?..

Answer / Taruna Singh

Yes, the first parameter of any instance method in a Python class is always implicitly named 'self'. It refers to the current instance of the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Explain about indexing and slicing operation in sequences?

1 Answers  


Explain how to copy an object in Python.

1 Answers  


What is the maximum possible length of an identifier?

1 Answers  


What is python easy_install?

1 Answers  


What are loops in python?

1 Answers  


What are the differences between python 2.x and python 3.x?

1 Answers  


Write a program to reverse the string?

1 Answers  


What is dogpile mechanism? Explain.

1 Answers  


Why should we hire you examples?

1 Answers  


What is meta class in python?

1 Answers  


What is the use of ‘self’ keyword in python?

1 Answers  


What makes python object-oriented?

1 Answers  


Categories