...

/

Using Python Packages

Using Python Packages

This lesson gives a brief overview of Python packages.

Importing packages #

Python allows developers to group related functions into hierarchical namespaces like packages, modules, etc.

When we want to use a module, class, or function from a package, we need to import it. There are many different ways to import packages. The most basic syntax is:

import numpy

after which any relevant module, class or function in that package inside numpy ...