save a list as txt python code example
Example: list to text file python
with open('your_file.txt', 'w') as f:
for item in my_list:
f.write("%s\n" % item)
with open('your_file.txt', 'w') as f:
for item in my_list:
f.write("%s\n" % item)