What does self refer to in an instance method in Python?
Correct answer
A. The current instance
A. The current instance
self is the conventional name for the instance the method is called on.
Asked in: Python Interview OOP
https://docs.python.org/3/tutorial/classes.htmlNot sure why the answer is A? Ask here and get an explanation.