Computer Science, asked by tharunkrishna1611, 8 months ago

What is the use of self keyword in python.?

Answers

Answered by sudharsansundar898
0

Answer:

The self is used to represent the instance of the class. With this keyword, you can access the attributes and methods of the class in python. It binds the attributes with the given arguments. The reason why we use self is that Python does not use the '@' syntax to refer to instance attributes.

Answered by nitikachawla1997
0

Answer:

hey mate!!!!!

here is your answer

hope it will help you

Attachments:
Similar questions