directory)\pp \previewpython make_db_file py \pp \previewpython for line in open('people-file')print(lineend=''bob job=>'devpay=> age=> name=>'bob smithendrec sue job=>'hdwpay=> age=> name=>'sue jonesendrec tom job=>none pay=> age=> name=>'tomendrec enddb this file is simply our database' content with added formatting its data originates from the test data initialization module we wrote in example - because that is the module from which example - ' self-test code imports its data in practiceexample - itself could be imported and used to store variety of databases and files notice how data to be written is formatted with the as-code repr call and is re-created with the eval callwhich treats strings as python code that allows us to store and recreate things like the none objectbut it is potentially unsafeyou shouldn' use eval if you can' be sure that the database won' contain malicious code for our purposeshoweverthere' probably no cause for alarm utility scripts to test furtherexample - reloads the database from file each time it is run example - pp \preview\dump_db_file py from make_db_file import loaddbase db loaddbase(for key in dbprint(key'=>\ 'db[key]print(db['sue']['name']and example - makes changes by loadingupdatingand storing again sneak preview