a) Python first searches the built-in namespace, then the global namespace and finally the local namespace
b) Python first searches the built-in namespace, then the local namespace and finally the global namespace
c) Python first searches the local namespace, then the global namespace and finally the built-in namespace
d) Python first searches the global namespace, then the local namespace and finally the built-in namespace
What is the order of namespaces in which Python looks for an identifier?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the order of namespaces in which Python looks for an identifier?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!