Need even more definitions? Subscribe to America's largest dictionary and get thousands more definitions and advanced search—ad free! The meaning of MODULE is a standard or unit of measurement. How to use module in a sentence.
The concept of a Z -module agrees with the notion of an abelian group. That is, every abelian group is a module over the ring of integers Z in a unique way. For n > 0, let n ⋅ x = x + x + ... + x ( n summands), 0 ⋅ x = 0, and (−n) ⋅ x = − (n ⋅ x). Such a module need not have a basis —groups containing torsion elements do not.
While this feature is not often needed, it can be used to extend the set of modules found in a package. In fact function definitions are also ‘statements’ that are ‘executed’; the execution of a module-level function definition adds the function name to the module’s global namespace.
To create a module just save the code you want in a file with the file extension .py: Now we can use the module we just created, by using the import statement: Import the module named mymodule, and call the greeting function: Note: When using a function from a module, use the syntax: module_name.function_name.