Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list to text python

# Turn the list into a literal string:
s = ['I', 'want', 4, 'apples', 'and', 18, 'bananas'] 
# will return: "['I', 'want', 4, 'apples', 'and', 18, 'bananas']"
print(str(s))
 
PREVIOUS NEXT
Tagged: #list #text #python
ADD COMMENT
Topic
Name
7+6 =