Answers for "python text to a lista"

0

lista to txt python

#Salvar lista em .txt
with open('your_file.txt', 'w') as f:
    for item in my_list:
        f.write("%sn" % item)
Posted by: Guest on November-27-2020
1

python convert a string to a list of words

>>> "Please split this string".split()
['Please', 'split', 'this', 'string']
Posted by: Guest on February-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language