What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-15 11:46:38
why self is passed in every method python
By using the “self” keyword we can access the attributes and methods of the class in python. It binds the attributes with the given arguments. self is parameter in function and user can use another parameter name in place of it. But it is ad... Add solution