A 9-question interactive quiz testing knowledge of Python's `__all__` variable, wildcard imports, and how to control the public API of modules and packages. Covers how wildcard imports work, the role of `__all__` in modules and packages, and best practices for defining clean public APIs.

1m read timeFrom realpython.com
Post cover image
Table of contents
Related ResourcesPython's __all__: Packages, Modules, and Wildcard Imports

Sort: