Skip to main content
Practice

Importing External Modules

So far, you've worked with Python's built-in modules such as math, random, and datetime.

Beyond these, Python has a large ecosystem of external modules created by the community.


External Modules

External modules are modules that are not included in the standard library.

The key features of external modules are:

  • Add features like web scraping, data analysis, visualization, and machine learning
  • Are published on the Python Package Index (PyPI)
  • Can be installed with the package manager pip

You'll use them whenever you need functionality that is not included in the standard library.


Examples

Some examples of external modules are:

  • requests: send HTTP requests
  • openpyxl: work with Excel files
  • pandas: data analysis
  • matplotlib: plot charts

Instead of building everything from scratch, you import and reuse these modules. This saves time and helps prevent errors.

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.