Oct-31-2018, 07:56 AM
(This post was last modified: Oct-31-2018, 07:56 AM by Gribouillis.)
There is also a safe eval:
import ast ast.literal_eval('[1,2]')or assuming the initial list is json data
import json json.loads('[1,2]')