Parse List From String

[Solved] Parse List From String | Haskell - Code Explorer | yomemimo.com
Question : parse list from string

Answered by : important-ibex-8pcai8n6a58c

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

Source : https://stackoverflow.com/a/1894296 | Last Update : Wed, 01 Dec 21

Answers related to parse list from string

Code Explorer Popular Question For Haskell