If you’ve worked on a Python project that has more than one file, chances are you’ve had to use an
import statement before. Even for Pythonistas with a couple of projects under their belt, imports can be confusing!
If you’re reading this because you’d like to gain a deeper understanding of imports in Python, particularly absolute and relative imports, then you’ve come to the right place! In this tutorial, you’ll learn the differences between the two, as well as their pros and cons.