Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert string of list to list python

ls = '[1,2,3]'
# use json module
import json 
ls = json.loads(ls) 
print(ls) # [1,2,3]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #list #list #python
ADD COMMENT
Topic
Name
6+1 =