Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

parse list from string

import ast

x = '["A","B","C","D"]'
x = ast.literal_eval(x)
x

# Returns: ['A', 'B', 'C', ' D']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #parse #list #string
ADD COMMENT
Topic
Name
7+7 =