sscasc@tumkur modules module is library of functions modules are code files meant to be used by other programs normally files that are used as modules contain only class and function definitions modularizing makes code easy to maintain and debugand enables the code to be reused to use modulewe use the import statement module can also import other modules example:gcd_lcm file name gcd_lcm_module py return the gcd of two integers def gcd( ) initial gcd is qn possible gcd while != = % = = gcd= lcm=int( * /gcdreturn gcd,lcm return gcd and lcm now we write separate program to use the above module functionas shown below file name test_module file name test_module py from gcd_lcm_module import gcd import the module prompt the user to enter two integers eval(input("enter the first integer") eval(input("enter the second integer")print("the gcd and lcm for" ,"and" "is"gcd( )outputenter the first integer enter the second integer the gcd and lcm for and is ( the import statement in order to use the functions and variables of the module py programwe will use the import statement the syntax of the import statement is shown hereimport module module module the statements and definitions of modules are executed for the first time when the interpreter encounters the module name in the import statement in preceding codein order to use the module variables and functionsuse the module_name variable and module_name function(notations in order to write module with every function of module pypython allows use the as statement as shown the syntax is given as followsimport module_name as new_name example:module def sum ( , ) + sp_python programming