pickle.dumo code example Example: pickle dump import pickle with open('Fruits.obj', 'wb') as fp: pickle.dump(banana, fp)