

InterviewSolution
Saved Bookmarks
1. |
What is the order of namespaces in which Python looks for an identifier?(a) Python first searches the global namespace, then the local namespace and finally the built-in namespace(b) Python first searches the local namespace, then the global namespace and finally the built-in namespace(c) Python first searches the built-in namespace, then the global namespace and finally the local namespace(d) Python first searches the built-in namespace, then the local namespace and finally the global namespace |
Answer» Right option is (b) Python first searches the local namespace, then the global namespace and finally the built-in namespace Easiest explanation - Python first searches for the local, then the global and finally the built-in namespace. |
|