M

Mr. Dubey • 52.74K Points
Coach

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
Share

Explanation by: Mr. Dubey
 python first searches for the local, then the global and finally the built-in namespace.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Loading Comments....

Question analytics