import pickle def storedata()initializing data to be stored in db aseem {'key''aseem','name''aseem patel''age' ,'pay' siba {'key''siba','name''siba panda''age' ,'pay' database db {db['aseem'aseem db['siba'siba it' important to use binary mode dbfile open('examplepickle','ab'sourcedestination pickle dump(db,dbfiledbfile close(def loaddata()for reading also binary mode is important dbfile open('examplepickle','rb'db pickle load(dbfilefor keys in dbprint(keys,'=>',db[keys]dbfile close(if __name__ ='__main__'storedata(loaddata(outputaseem ={'key''aseem''name''aseem patel''age' 'pay' siba ={'key''siba''name''siba panda''age' 'pay' page