python class instance variables and class variables
This is because of the way Python resolves names with the .. When you write self.list the Python runtime tries to resolve the list name first by looking for it in the instance object, and if it is not found there, then in the class instance. Let’s look into it step by step self.list.append(1) Is … Read more