Python: how convert string to list

Viewed 24

I have a lot of strings, that were lists before writing to the csv. And now it looks like

s = "['SOAR', 'SIEM', 'SOAR']"

How can I convert it into list?

out = ['SOAR', 'SIEM', 'SOAR']
0 Answers
Related