and other programs externallya module file' names can be fetched with two python statementsimport and fromas well as the reload call to illustrateuse text editor to create one-line python module file called myfile py in your working directorywith the following contentstitle "the meaning of lifethis may be one of the world' simplest python modules (it contains single assignment statement)but it' enough to illustrate the point when this file is importedits code is run to generate the module' attribute that isthe assignment statement creates variable and module attribute named title you can access this module' title attribute in other components in two different ways firstyou can load the module as whole with an import statementand then qualify the module name with the attribute name to fetch it (note that we're letting the interpreter print automatically here)python import myfile myfile title 'the meaning of lifestart python run fileload module as whole use its attribute namesto qualify in generalthe dot expression syntax object attribute lets you fetch any attribute attached to any objectand is one of the most common operations in python code herewe've used it to access the string variable title inside the module myfile--in other wordsmyfile title alternativelyyou can fetch (reallycopynames out of module with from statementspython from myfile import title title 'the meaning of lifestart python run filecopy its names use name directlyno need to qualify as you'll see in more detail laterfrom is just like an importwith an extra assignment to names in the importing component technicallyfrom copies module' attributessuch that they become simple variables in the recipient--thusyou can simply refer to the imported string this time as title ( variableinstead of myfile title (an attribute reference whether you use import or from to invoke an import operationthe statements in the module file myfile py are executedand the importing component (herethe interactive promptgains access to names assigned at the top level of the file there' only one such name in this simple example--the variable titleassigned to string--but the notice that import and from both list the name of the module file as simply myfile without its py extension suffix as you'll learn in part vwhen python looks for the actual fileit knows to include the suffix in its search procedure againyou must include the py suffix in system shell command linesbut not in import statements module imports and reloads