I need help understanding a practice exam problem for a CS class in python. The problem deals with the python namespace. Here is the question:
Which of the following are true in Python?
i. Every function has access to the names in the builtin namespace.
ii. Every invocation of a function creates a new namespace nested within the calling function’s namespace.
iii. Invoking function G from function F adds the name G to F’s namespace
iv. The namespace of an imported module is always added to the builtin namespace.
a. i only
b. ii and iii only
c. i and iv only (answer)
d. i, ii and iii only
e. None of the above
Can someone please explain why the second and third cases are false. Or point me to some resources that explain the namespace. Thank-you.