Explain the concept of namespaces in python?
Answers
Answered by
2
Answer:
Generally speaking, a namespace (sometimes also called a context) is a naming system for making names unique to avoid ambiguity. ... Namespaces in Python are implemented as Python dictionaries, this means it is a mapping from names (keys) to objects (values).
Answered by
0
A namespace is a dictionary of variable names (keys) and their corresponding objects (values). ... A Python statement can access variables in a local namespace and in the global namespace. If a local and a global variable have the same name, the local variable shadows the global variable.
(っ◔◡◔)っ Mark brainliest please
Similar questions