Skip to main content

Chapter 63 Quiz

Before taking the quiz, verify that you can do each of these without looking at the lessons:

  • Create a module by placing a class in a separate .py file and importing it
  • Build a package with __init__.py that re-exports key names
  • Explain what __name__ contains when a file is run directly vs imported
  • Create a __main__.py entry point and run a package with python -m
  • Identify a circular import from an error message and apply a fix strategy
  • Explain why star imports are dangerous and how namespace collisions occur

If any feel uncertain, revisit the specific lesson before continuing.

Test your understanding of the full module and package system by evaluating import behavior, package design, dependency management, and import best practices.

Checking access...