Answers for "write set to txt python"

0

write set to txt python

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

Python Answers by Framework

Browse Popular Code Answers by Language