# Modules in Python

Modules in Python: import and the Standard Library, Your Own Modules and Packages.

Updated: November 19, 2026

1. [import and the Standard Library](https://www.ask-codey.com/lessons/python-modules-import-and-standard-library) (Apprentice): Python comes with a standard library of ready-made modules for dice rolls, dates, averages and more, and an import line brings one into your program, whole, by its names, or under a shorter name.
2. [Your Own Modules and Packages](https://www.ask-codey.com/lessons/python-modules-your-own) (Apprentice): Any .py file is a module another file can import, so a growing program is split into files by job, a folder of them with \_\_init\_\_.py becomes a package, and the \_\_name\_\_ check keeps a file's own test lines from running when it's imported.

Source: https://www.ask-codey.com/courses/python-in-depth/topics/python-modules
