Comprehensive Python Cheatsheet
Non-Local If variable is being assigned to anywhere in the scope, it is regarded as a local variable, unless it is declared as a 'global' or a 'nonlocal'. def get_counter(): i = 0 def out(): nonlocal i i += 1 return i return out MRO determines the order in
gto76.github.io