writerow([ , ,'aaa'] writerow([ , ,'bbb']#write the data into demo csv file import csv with open ("demo csv"," "as filef=csv writer(filef writerow([' no','rollno','name'] writerow([ , ,'aaa'] writerow([ , ,'bbb']the pickle module python pickle module is used for serializing and de-serializing python object structure any object in python can be pickled so that it can be saved on disk what pickle does is that it "serializesthe object first before writing it to file pickling is way to convert python object (listdictetc into character stream the idea is that this character stream contains all the information necessary to reconstruct the object in another python script import pickle int(input('enter the number of data ') [for in range( ) input('enter data '+str( )+' append(afile open('demo bin''wb'pickle dump(lfilefile close(outputenter the number of data enter data python enter data is enter data interesting python pickle load to retrieve pickled data,we have to use pickle load(import pickle file open('demo bin''rb' pickle load(filefile close(print('showing the pickled data:' = bv prasanthi,dept of cse page