If I have a sample python code to be executed on Linux. How should I handle multiple objects with 'pickle' as below -<br><br>-------<br>#!/usr/bin/python<br><br>import pickle<br><br>#my_list = {'a': 'Apple', 'b': 'Mango', 'c': 'Orange', 'd': 'Pineapple'}<br>
#my_list = ('Apple', 'Mango', 'Orange', 'Pineapple')<br>my_list = ['Apple', 'Mango', 'Orange', 'Pineapple']<br>#my_list = ()<br>output = open('readfile.pkl', 'wb')<br>
pickle.dump(my_list, output)<br>output.close()<br><br>my_file = open('readfile.pkl', 'rb')<br>my_list2 = pickle.load(my_file)<br>my_file.close()<br><br>print my_list<br>print my_list2<br>-----<br><br>This code works fine but now I have to handle multiple objects?<br>