Skip to content

Instantly share code, notes, and snippets.

View helenzhangg's full-sized avatar

Helen Zhang helenzhangg

View GitHub Profile
#
# Helen Zhang, hz96@bu.edu
#
import random
def create_dictionary(filename):
''' takes a string representing name of txt file, returns key-pair dictionary
where every key is a corresponding word and has a value'''