Q. What is the order of namespaces in which Python looks for an identifier? (Solved)

1. python first searches the global namespace, then the local namespace and finally the built- in namespace

2. python first searches the local namespace, then the global namespace and finally the built-in namespace

3. python first searches the built-in namespace, then the global namespace and finally the local namespace

4. python first searches the built-in namespace, then the local namespace and finally the global namespace

  • b. python first searches the local namespace, then the global namespace and finally the built-in namespace
Subscribe Now

Get All Updates & News