Answer is A.
The first argument of every class method, including init, is always a reference to the current instance of the class. By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called
The first argument of every class method, including init, is always a reference to the current instance of the class. By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called.
https://yasoob.me/2013/08/07/the-self-variable-in-python-explained/
A. holds a reference to the currently processed object
In Python, methods are functions that are defined inside a class and are associated with objects of that class. When a method is called on an object, the first parameter of the method holds a reference to the object on which the method is called, and is typically named self. This allows the method to access and modify the attributes and behavior of the object, as well as to call other methods on the same object.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
anjuvinayan
Highly Voted 4 years, 12 months agopeypa
Most Recent 8 months, 2 weeks agoOracleist
9 months, 3 weeks agoseaverick
10 months, 1 week ago34_trt
1 year, 2 months ago[Removed]
1 year, 8 months agoivanbicalho
1 year, 9 months agoAdeshina
1 year, 11 months agoJnanada
2 years, 3 months agomacxsz
2 years, 6 months agorocky48
2 years, 7 months agombacelar
2 years, 8 months agotechnoguy
3 years agoSpectra
4 years, 2 months agoPCAPaspirant
4 years, 1 month agoPythonPuhal
3 years, 8 months agoaldo63
1 year, 9 months agoimsaad
4 years, 3 months agopuneetk
4 years, 4 months agoSophieSu
4 years, 11 months ago