Search⌘ K

Introduction To Imports

Explore how to use Python's importing system beyond basic usage. Understand regular imports, importing multiple modules, renaming imports, relative and local imports, and common pitfalls to write cleaner and more efficient Python code.

We'll cover the following...

One of the first things we learn as a beginner Python programmer is how to import other modules or packages. However, we’ve noticed that even people who have used Python casually for multiple years don’t always know how flexible Python’s importing infrastructure is. In this chapter, we ...