Modules and Packages

Get introduced to the Python’s modules and packages in this lesson.

We'll cover the following

Python modules

Most languages allow reusable chunks of code to be bundled up and made available to other code. Python supports this through modules.

In Python, a module is simply a Python file imported into another Python file. For example, if we create a file called mymodule.py and add a test function:

Get hands-on with 1200+ tech skills courses.