Integers in pickle file | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Integers in pickle file

How to save integers into pickle file

7th Aug 2019, 10:18 AM
mysterious_coder - avatar
2 Answers
+ 2
That's the beauty of pickle - it doesn't matter what you save, the procedure is the same! import pickle x = 5 with open('file.dmp', 'wb') as tmp: pickle.dump(x, tmp)
7th Aug 2019, 11:44 AM
HonFu - avatar
+ 1
thank you
13th Aug 2019, 2:37 PM
mysterious_coder - avatar