I have this list in a list
a = [[\'1\',\'2\',\'3\',\'4\'],[\'1\',\'2\',\'3\',\'4\'],[\'1\',\'2\',\'3\',\'4\']]
but i need it to be ints , im
An example using nested list comprehension:
In [1]: a = [['1','2','3','4'],['1','2','3','4'],['1','2','3','4']] In [2]: [[int(s) for s in l] for l in a] Out[2]: [[1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4]]