Computer Science, asked by 6321ayush, 4 months ago

What is self python ?​

Answers

Answered by agmA10
0

Answer:

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.

Answered by rrr7397
5

\huge\mathbb\colorbox{pink}{\color{white}{AnSwEr}}

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.

Similar questions