Do I need a next for loop in order to get all values?
Don't forget to open the file first..

Py 2.6

For item in list:
    the_opened_file.write("%s\n" % item)


Py 3.x

with open(filepath,'w') as fileptr:
    for item in list:
        fileptr.write("{}\n".format(item))


If you want to save your list itself,
Convert it to numpy format using np.assarray(list) and then use np.save(file,array,....(other opts) and reload it whenever required using np.load()