What is a namespace in python?



What is a namespace in python?..

Answer / Pinki Dhama

In Python, a namespace is a collection of variables. It defines a scope where variables can be accessed. Each function has its own local namespace, and the global namespace contains all variables declared outside functions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What good is recursion?

1 Answers  


How do you convert a number into a string?

1 Answers  


Which database is used in python?

1 Answers  


How can we pass optional or keyword parameters from one function to another in Python?

1 Answers  


How do you convert a string to in python?

1 Answers  


What makes python object-oriented?

1 Answers  


What will be the output of the code:def foo (i=[])?

1 Answers  


Explain about zip() in python?

1 Answers  


What do you understand by python iterator and iterable elements?

1 Answers  


How are arguments passed - by reference or by value?

1 Answers  


Is python as powerful as c++?

1 Answers  


What is the syntax for dictionary comprehension in python?

1 Answers  


Categories