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
Chirag Aggarwal -
Nozibul Islam -
Tanushree Aggarwal -
Bala Madhusoodhanan -
Top comments (0)