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 |
What good is recursion?
How do you convert a number into a string?
Which database is used in python?
How can we pass optional or keyword parameters from one function to another in Python?
How do you convert a string to in python?
What makes python object-oriented?
What will be the output of the code:def foo (i=[])?
Explain about zip() in python?
What do you understand by python iterator and iterable elements?
How are arguments passed - by reference or by value?
Is python as powerful as c++?
What is the syntax for dictionary comprehension in python?