Python Namespace and Variable Scope Resolution (LEGB)
In this tutorial, we will learn about Python namespace, the scope of a variable and the rules for variable scope resolution. What is Python Namespace? Python namespaces are containers to map names to objects. In Python, everything is an object and we specify a name to the object so that we can access it later …
Python Namespace and Variable Scope Resolution (LEGB) Read More »