colocar linhas do txt em lista 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)