0 votes
by (700 points)
What is self in Python?

1 Answer

0 votes
by (520 points)
self represents the instance of the class. 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. The reason you need to use self.

Related questions

0 votes
1 answer
0 votes
0 answers
asked Nov 20, 2020 by balancingrobot (180 points)
0 votes
1 answer
0 votes
0 answers
asked Nov 5, 2020 by balancingrobot (180 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
...