Subash Chandran posted: "#Create an empty variable empty_list = [] #Open the pickle file in 'wb' so that you can write and dump the empty variable openfile = open('filename', 'wb') pickle.dump(empty_list, openfile) openfile.close() "
|

Subash Chandran posted: "#Create an empty variable empty_list = [] #Open the pickle file in 'wb' so that you can write and dump the empty variable openfile = open('filename', 'wb') pickle.dump(empty_list, openfile) openfile.close() "
|
Write a newfangled code fragment at an earlier stage to use it. Then call another method and make sure their input is the correct one. The s...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.