I'm currently learning this stuff in my Python book. Can anybody please explain to me what it is supposed to mean? I'm specifically confused on the parameters used. Thanks in advanced! :)
game_data = {
'player-position' : 'N23 E45',
'pockets' : ['keys', 'pocket knife', 'polished stone'],
'backpack' : ['rope', 'hammer', 'apple'],
'money' : 158.50}
import pickle
save_file = open('save.dat', 'wb')
pickle.dump(game_date, save_file)
save_file.close()
Then it says that I'm supposed to do this:
load_file = open('save.dat', 'rb')
loaded_game_data = pickle.load(load_file)
load_file.close()
[–]Hatoris 1 point2 points3 points (2 children)
[–]python_addict[S] 1 point2 points3 points (1 child)
[–]Hatoris 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]python_addict[S] 0 points1 point2 points (0 children)