lista to txt python

Solutions on MaxInterview for lista to txt python by the best coders in the world

showing results for - "lista to txt python"
Giulio
10 Sep 2017
1#Salvar lista em .txt
2with open('your_file.txt', 'w') as f:
3    for item in my_list:
4        f.write("%s\n" % item)
5