Importing, Namespaces, Modules#

Learning Objectives#

After working through this topic, you should be able to:

  • Import functions, modules and classes from the standard library or from third party packages

  • Explain how namespaces deal with the situation that log means different things for a web developer and mathematician and find similar examples

  • Diagnose the most common errors when importing things:

    • ModuleNotFoundError

    • ImportError

Materials#

Video:

Download the slides.

See the Documentation of how to import in the Python Standard Reference.

Quiz#