Answers for "python save list to text"

0

python save list to text

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

Python Answers by Framework

Browse Popular Code Answers by Language