Answers for "convert a list in to a text file"

1

list to text file python

with open('your_file.txt', 'w') as f:
    for item in my_list:
        f.write("%sn" % item)
Posted by: Guest on January-05-2021

Code answers related to "convert a list in to a text file"

Python Answers by Framework

Browse Popular Code Answers by Language