I have a string:
s= "[7, 9, 41, [32, 67]]"
and I need to convert that string into a list:
l= [7, 9, 41, [32, 67]]
the problem is, when I use list(s) I get this:
['[', '7', ',', ' ', '9', ',', ' ', '4', '1', ',', ' ', '[', '3', '2', ',', ' ', '6', '7', ']', ']']
I am using python 3.2
listan iterable, it will give you a list containing the entries from the iterable.