What is self in python?



What is self in python?..

Answer / Soni

In Python, 'self' is a reference to the current instance of the class. It is used to access variables and methods within that specific instance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is python identifiers?

1 Answers  


Is anaconda good for python?

1 Answers  


Can you run python programs without python installed?

1 Answers  


Do you know what are the optional statements that can be used inside a <try-except> block in python?

1 Answers  


How do you open an already existing file and add content to it?

1 Answers  


Which method will be used to delete a file ?

1 Answers  


What does the list comprehension do?

1 Answers  


Is all the memory freed when python exits?

1 Answers  


Tell me what is the difference between xrange and range?

1 Answers  


What do you mean by the dictionary in python?

1 Answers  


What is zip() function in python?

1 Answers  


Mention what are the rules for local and global variables in Python?

1 Answers  


Categories