I have list which is saving in file while while returning I need to (https://docs.python.org/3.8/library/ast.html#ast.literal_eval ) do ast.literal_eval method to getting as element
my list is having combination lst = FirstName, empid,age,salary,filename
example my list which is saved in file is ['Joe',101,31,99292,'/home/Joe/Joe.txt']
, If I need to pass this to return I need to use ast.literal_eval
How to save with the list in to file with help of pickle and how to return it?