import pickle def data(): a=open('data.dat','rb') data_1=pickle.load(a) return data_1 a.close() data