Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how do i convert a list to a string in python

lines2 = " ".join(lines) 	# Converts the list to a string.
							# This should work for writing to a file
file.write(lines2)
Source by favtutor.com #
 
PREVIOUS NEXT
Tagged: #convert #list #string #python
ADD COMMENT
Topic
Name
3+1 =