initialize data to be stored in filespicklesshelves records bob {'name''bob smith''age' 'pay' 'job''dev'sue {'name''sue jones''age' 'pay' 'job''hdw'tom {'name''tom''age' 'pay' 'job'nonedatabase db {db['bob'bob db['sue'sue db['tom'tom if __name__ ='__main__'when run as script for key in dbprint(key'=>\ 'db[key]as usualthe __name__ test at the bottom of example - is true only when this file is runnot when it is imported when run as top-level script ( from command linevia an icon clickor within the idle gui)the file' self-test code under this test dumps the database' contents to the standard output stream (rememberthat' what print function-call statements do by defaulthere is the script in action being run from system command line on windows type the following command in command prompt window after cd to the directory where the file is storedand use similar console window on other types of computers\pp \previewpython initdata py bob ={'job''dev''pay' 'age' 'name''bob smith'sue ={'job''hdw''pay' 'age' 'name''sue jones'tom ={'job'none'pay' 'age' 'name''tom'file name conventions since this is our first source file ( "script")here are three usage notes for this book' examplesthe text \pp \previewin the first line of the preceding example listing stands for your operating system' promptwhich can vary per platformyou type just the text that follows this prompt (python initdata pylike all examples in this bookthe system prompt also gives the directory in the downloadable book examples package where this command should be run when running this script using command-line in system shellmake sure the shell' current working directory is pp \preview this can matter for examples that use files in the working directory step storing records persistently