I understand that python provides a value for self when methods are called on the instance of a class.
However, I don't understand how self works when assigning value to a variable of instance.
class snake:
def __init__(self,name):
self.name=name#this is the bit I don't understand. How is self.name #interpreted by python?