I have a text file with data in the following format:
['[10,2,3,4]','[5,26,17,28]','[10,13,36,48]']
How do I convert this to:
[[10,2,3,4],[5,26,17,28],[10,13,36,48]] ?
Which I think would be converting a list of str to a list of lists of int. I have tried using all suggested methods such as list comprehensions, map etc, but either end up with each individual integer as a str e.g. 48 as '4','8',... or stays exactly the same. I am using Python 3.4