Guys, we have builtin, global, nonlocal, and local scope. Please can you tell me - suppose we have multiple level nested fucntion, then, does "non local" for a function A means the scope that is in the function that is located immediately outside the function A?
Right above this line docs.python.org/3/tutorial/classes.html#inheritance, it says: "we’ll find some good reasons why a method would want to reference its own class.". I cant a reson can someome help me understand
Does author mean to say that child class method wants to call the parent class method to use the parent method. Have I understood it right?
@variable the reason is that one needs to do something with the class. That may be accessing class attributes, instantiating the class, checking other values against the class, ...