python list string to list March 29, 2022 .import astx = '[ "A","B","C" , " D"]'x = ast.literal_eval(x)>>> x['A', 'B', 'C', ' D'].www.marearts.com