type mylibrary sayhello("josh"and press enter the sayhello(function outputs the expected textas shown in figure - figure - the say hello(function outputs the expected greeting notice that you must precede the attribute namewhich is the say hello(function in this casewith the module namewhich is mylibrary the two elements are separated by period every call to module that you import follows the same pattern type mylibrary saygoodbye("sally"and press enter the saygoodbyefunction outputs the expected text close the python shell the python shell window closes using the from import statement the from import statement has the advantage of importing only the attributes you need from module this difference means that the module uses less memory and other system resources than using the import statement does in additionthe from import statement makes the module little easier to use because some commandssuch as dir()show less informationor only the information that you actually need the point is that you get only what you want and not anything else the following steps demonstrate using the from import statement