module unit structure objectives introduction importing module creating and exploring modules math module random module time module summary bibliography unit end exercise objectives modules are simply 'program logicor 'python scriptthat can be used for variety of applications or functions we can declare functionsclasses etc in module the focus is to break down the code into different modules so that there will be no or minimum dependencies on one another introduction if you quit from the python interpreter and enter it againthe definitions you have made(functions and variablesare lost thereforeif you want to write somewhat longer programyou are better off using text editor to prepare the input for the interpreter and running it with that file as input instead this is known as creating script as your program gets longeryou may want to split it into several files for easier maintenance you may also want to use handy function that you've written in several programs without copying its definition into each program to support thispython has way to put definitions in file and use them in script or in an interactive instance of the interpreter such file is called moduledefinitions from module can be imported into other modules or into the main module (the collection of variables that you have access to in script executed at the top level and in calculator mode