I have a string that already looks like a list:
activeStateString = "['11', '20', '0']"
And I would like to define this as a list in Python. I know that I can start to filter and break it apart and rebuild a new list but then I have to go into loops etc. Is there a way in Python to promote that string from a "string" to a list straight away? So once it is converted:
activeStateString -> activeStateList
I get:
11
for:
print activeStateList[0]
Thanks
(Python 2.6)