Use of self and self.name

Hello sir I cannot understand the meaning and the use of “self” or “self.name” in the program and what actually it does ?

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.
Hence if we want to use any attribute in a class within it then we make use of self in order to access it .
Also self.name is used to access the attribute “name” present in the class.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.