modules and the import statement we have already introduced many functions ( maxand classes ( listthat are defined within python' built-in namespace depending on the version of pythonthere are approximately - definitions that were deemed significant enough to be included in that built-in namespace beyond the built-in definitionsthe standard python distribution includes perhaps tens of thousands of other valuesfunctionsand classes that are organized in additional librariesknown as modulesthat can be imported from within program as an examplewe consider the math module while the built-in namespace includes few mathematical functions ( absminmaxround)many more are relegated to the math module ( sincossqrtthat module also defines approximate values for the mathematical constantspi and python' import statement loads definitions from module into the current namespace one form of an import statement uses syntax such as the followingfrom math import pisqrt this command adds both pi and sqrtas defined in the math moduleinto the current namespaceallowing direct use of the identifierpior call of the functionsqrt( if there are many definitions from the same module to be importedan asterisk may be used as wild cardas infrom math import but this form should be used sparingly the danger is that some of the names defined in the module may conflict with names already in the current namespace (or being imported from another module)and the import causes the new definitions to replace existing ones another approach that can be used to access many definitions from the same module is to import the module itselfusing syntax such asimport math formallythis adds the identifiermathto the current namespacewith the module as its value (modules are also first-class objects in python once importedindividual definitions from the module can be accessed using fully-qualified namesuch as math pi or math sqrt( creating new module to create new moduleone simply has to put the relevant definitions in file named with py suffix those definitions can be imported from any other py file within the same project directory for exampleif we were to put the definition of our count function (see section into file named utility pywe could import that function using the syntaxfrom utility import count