A module is a distinct assembly of components that can be easily added, removed, or replaced in a larger system. Generally, a module is not functional on its own.
In computer hardware, a module is a component that is designed for easy replacement.
In computer software, a module is an extension to a main program dedicated to a specific function.
In programming, a module is a section of code that is added in as a whole or is designed for easy reusability.