<filename>books/tech/py/m_lutz-programming_python-4_ed/code/ch_01/step_2/04_using_shelves/initdata.py
# initialize data to be stored in files, pickles, shelves

# records
bob = {'name': '<NAME>', 'age': 42, 'pay': 30000, 'job': 'dev'}
sue = {'name': '<NAME>', 'age': 45, 'pay': 40000, 'job': 'hdw'}
tom = {'name': 'Tom',       'age': 50, 'pay': 0,     'job': None}

# database
db = {}
db['bob'] = bob
db['sue'] = sue
db['tom'] = tom

if __name__ == '__main__':  # when run as a script
    for key in db:
        print(key, '=>\n  ', db[key])
