Q.

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» B. python first searches the local namespace, then the global namespace and finally the built-in namespace
Explanation: python first searches for the local, then the global and finally the built-in namespace.
4.9k
0
Do you find this helpful?
29

Discussion

No comments yet