Modules Flashcards
1
Q
Give the two ways that a Python source file can be executed
A
As a main programme as a module or package
2
Q
What three things happen when a module is imported?
A
A namespace is created
Code in the module is executed
A name within the caller is created