Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to produce txt file from list python

a_list = ["abc", "def", "ghi"]
textfile = open("a_file.txt", "w")
for element in a_list:
textfile. write(element + "
")
textfile. close()
 
PREVIOUS NEXT
Tagged: #produce #txt #file #list #python
ADD COMMENT
Topic
Name
9+5 =