Namespace in python
November 18, 2022 ⚊ 1 Min read ⚊ Views 95 ⚊ EDUCATIONnamespaces in python, types of namespaces, and scopes in python. In python programming, everything is considered an object. Name is nothing but the identifier of an object. And space is an address in the main memory associated with that object. We can define namespace as a collection of names associated with the address in the main memory. There are three types of namespaces in python – Built-in Namespace, Global Namespace, and Local Namespace. Each lower namespace can access the upper namespaces. And the scope of variables in python depends on the namespaces.
Tags: and Scope-in-Python, Namespaces