salvar txt python code example
Example: lista to txt python
#Salvar lista em .txt
with open('your_file.txt', 'w') as f:
for item in my_list:
f.write("%s\n" % item)
#Salvar lista em .txt
with open('your_file.txt', 'w') as f:
for item in my_list:
f.write("%s\n" % item)