Question #229

Which function will write to a file?

pickle.dump() will write the pickled representation of an object to a file. dumps will return the pickled representation of an object as a bytes object, instead of writing it to a file. (docs.python.org/3/library/pickle.html)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵