# This file will help you understand pickle
# Please don't name this file pickle.py or else the import will try to
# import the file and not the Python library :-)
# This file will ONLY CREATE a pickled data structure
# below we are defining our data structure. This can be a list, a dictionary, or other data structure.
students = ["Asia","Bartek","Dominik","Eva","Franek","Gerald","Hanna","Joanna"]
# below we define the name of the file we want saved.
filename = 'my_pickled_file'
# below we open a file object for writing in binary
outfile = open(filename,'wb')
# below we actually dump the data in the list "students" into the file
# finally we close the file object. The file should be saved, in binary, in the same directory
# that this file was read in.