I am trying to make a simple pickling program but i can't figure out the error. Can someone please enlighten me.
I have checked this thing over and over, i am running Python 3.3.0 so i think that it is a conversion error because i am using a 2.7.0 tutorial but i can't find the correct conversion.
I have checked this thing over and over, i am running Python 3.3.0 so i think that it is a conversion error because i am using a 2.7.0 tutorial but i can't find the correct conversion.
import pickle inventory = ['Bow','Sword','Shield','Hammer'] file = open('save.txt', 'w') pickle.dump(inventory, file) file.close()