Test Your Knowledge: Quiz

 

 
  1. How does a module source code file become a module object?
  2. Why might you have to set your PYTHONPATH environment variable?
  3. Name the four major components of the module import search path.
  4. Name four file types that Python might load in response to an import operation.
  5. What is a namespace, and what does a module’s namespace contain?