A module primarily refers to a unit in computer programming that is set aside from the main block of code. It is made available to more than one section of the overall program. A type of function, this could be something that needs to be called often. That leaves the programmer with two options – repeating the same few lines of code multiple times, every time it is needed, or sectioning it off into a module and allowing the rest of the code to call it as needed.