module coding basics now that we've looked at the larger ideas behind moduleslet' turn to some examples of modules in action although some of the early topics in this will be review for linear readers who have already applied them in previous exampleswe'll find that they quickly lead us to further details surrounding python' modules that we haven' yet metsuch as nestingreloadsscopesand more python modules are easy to createthey're just files of python program code created with text editor you don' need to write special syntax to tell python you're making modulealmost any text file will do because python handles all the details of finding and loading modulesmodules are also easy to useclients simply import moduleor specific names module definesand use the objects they reference module creation to define modulesimply use your text editor to type some python code into text fileand save it with pyextensionany such file is automatically considered python module all the names assigned at the top level of the module become its attributes (names associated with the module objectand are exported for clients to use --they morph from variable to module object attribute automatically for instanceif you type the following def into file called module py and import ityou create module object with one attribute--the name printerwhich happens to be reference to function objectdef printer( )print(xmodule attribute module filenames before we go oni should say few more words about module filenames you can call modules just about anything you likebut module filenames should end in py suffix if you plan to import them the py is technically optional for top-level files that will