modules and packages overview of python' standard library |||modules whereas functions allow us to parcel up pieces of code so that they can be reused throughout programmodules provide means of collecting sets of functions (and as we will see in the next custom data typestogether so that they can be used by any number of programs python also has facilities for creating packages--these are sets of modules that are grouped togetherusually because their modules provide related functionality or because they depend on each other this first section describes the syntaxes for importing functionality from modules and packages--whether from the standard libraryor from our own custom modules and packages the section then goes on to show how to create custom packages and custom modules two custom module examples are shownthe first introductory and the second illustrating how to handle many of the practical issues that arisesuch as platform independence and testing online documentation the second section provides brief overview of python' standard library it is important to be aware of what the library has to offersince using predefined functionality makes programming much faster than creating everything from scratch alsomany of the standard library' modules are widely usedwell testedand robust in addition to the overviewa few small examples are used to illustrate some common use cases and cross-references are provided for modules covered in other modules and packages || python modulesimply putis py file module can contain any python code we like all the programs we have written so far have been contained in single py fileand so they are modules as well as programs the key difference