I have this list
patients = [Patient('Sara','Smith', 20, '07012345678','B1 234','Cold','',''), Patient('Will','Smith', 24, '07012345678','B1 234','Diabetic','',''),Patient('Sam','Jones', 21, '07012345678','B1 234','Cold','',''), Patient('Mike','Jones', 37,'07555551234','L2 2AB','Diabetic','',''), Patient('Daivd','Smith', 15, '07123456789','C1 ABC','Heart Disease','','')]
I want to put in text file. and then use the text file in other functions. Please help