You can use ast.literal_eval
>>> from ast import literal_eval
>>> s = "['a',['b','c','d'],'e']"
>>> print(literal_eval(s))
['a', ['b', 'c', 'd'], 'e']
You can use ast.literal_eval
>>> from ast import literal_eval
>>> s = "['a',['b','c','d'],'e']"
>>> print(literal_eval(s))
['a', ['b', 'c', 'd'], 'e']
For further actions, you may consider blocking this person and/or reporting abuse
salchichita -
Devesh Kumar -
Michael Linson -
Priya Pandey -
Top comments (0)