This is for an intro to python class:
# This program tries to write and then read back a# dictionary using the pickle module. See if you can# fix it!import pickleoriginal_dictionary = {‘a’: 1, ‘b’: 2}with open(‘stored_dictionary’, ‘w’) as pickle_file: pickle.dump(original_dictionary, pickle_file)with open(‘stored_dictionary’) as pickle_file: new_dictionary = pickle.load(pickle_file) print(new_dictionary == original_dictionary)
Expert Answer
An answer will be send to you shortly. . . . .