Introduction and setup
Modules and packages
Virtual environments and package management
Course Project: building a package
Wrapping up

Modules and the import statement

Python modules

We’ll start this course with modules. The Python import statement allows us to import a Python module. In turn, A Python module helps us organize and reuse our code. In this lesson, you learn:

  • How to create modules and organize code in modules
  • The import statement that allows us to import a module or parts of a module
  • Some best practices when it comes to modules
  • How to create runnable modules