herewe have created an instance of myclass the hex code refers to the address where the object is being stored another instance is pointing to another address now let us define one variable inside the class myclass(and get the variable from the instance of that class as shown in the following codeclass myclass(object)var create first instance of myclass this_obj myclass(print(this_obj varanother instance of myclass that_obj myclass(print (that_obj varoutput you can observe the following output when you execute the code given above as instance knows from which class it is instantiatedso when requested for an attribute from an instancethe instance looks for the attribute and the class this is called the attribute lookup instance methods function defined in class is called method an instance method requires an instance in order to call it and requires no decorator when creating an instance methodthe first parameter is always self though we can call it (selfby any other nameit is recommended to use selfas it is naming convention class myclass(object)var= def firstm(self)print("helloworld"obj myclass(print(obj varobj firstm(