0
What is use of self and self.id in python?
2 Answers
+ 2
self just a pointer to current object, self.id shows you current objectâs id ...
+ 1
If you have class and you want to get their attributes you have to use self statement. It is pointer on object which are you using now.