Python Developer Question:
Explain what is namespace in Python?
Answer:
In Python, every name introduced has a place where it lives and can be hooked for. This is known as namespace. It is like a box where a variable name is mapped to the object placed. Whenever the variable is searched out, this box will be searched, to get corresponding object.
Previous Question | Next Question |
Tell me what is the difference between Xrange and range? | Tell me what are the tools that help to find bugs or perform static analysis? |