Challenge

Project 1 - English Dictionary App & Library Book Management System

import pickle

import os

#serialization

def serDictionary(f_dict):

with open ("words.txt", "wb") as dictionary:

pickle.dump(f_dict,dictionary)

print("writing to dictionary words.txt has successful")

#deserialization

def deserDictionary():

with open ("words.txt") as dictionary:

f_dict=pickle.load(dictionary)

print("The reading dictionary has successful")

return f_dict

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.