I currently have a list of strings, the strings are a list but in a string (see below). I would like to make this a list of lists.
I currently have:
mylist = ['[1, 2]', '[2, 4, 9]', '[3]']
and I would like to end up with
mylist = [[1, 2], [2, 4, 9] [3]]
I have thought about using list() to make the elements a list, similar to the way int() makes a string into an integer. Also, split() isn't that useful to me as it just breaks everything down into one character strings and recreating the list from these could be messy.
Any quick way to do this which I might be missing?