Python
Python
Namespaces
A namespace is a collection of currently defined symbolic names along with
information about the object that each name references. You can think of a
namespace as a dictionary in which the keys are the object names and the
values are the objects themselves. Each key-value pair maps a name to its
corresponding object.
In addition to being a module, math acts as a namespace that keeps all the
attributes of the module together.
You can list the contents of a namespace with dir() Ej: dir (math)
Using dir() without any argument shows what’s in the global
namespace.
Note that this places pi in the global namespace and not within a math
namespace.
m.pi