# Modules
## CS Concepts — The Codex Coding
**URL:** https://thecodex.expert/coding/concepts/modules/
**Type:** concept | **Confidence:** high | **Last verified:** 2026-06-01

## CANONICAL DEFINITION
A module is a self-contained unit of source code that defines a namespace — a collection of names (functions, classes, variables) that can be selectively imported by other parts of a program — enabling code organisation, reuse across files, and isolation of implementation details behind a defined public interface.

## REQUIRES
concepts/functions, concepts/scope

## ENABLES
concepts/encapsulation, languages/python

*The Codex Coding — thecodex.expert/coding/ — Free forever — Mumbai, India*
