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