views:

64

answers:

1

I have a list of lists containing tuples:

[[(1L,)], [(2L,)], [(3L,)], [(4L,)], [(5L,)]

how do i edit the list so the list looks like:

l = [[1][2][3][4][5]]
+5  A: 
>>> a
[[(1L,)], [(2L,)], [(3L,)], [(4L,)], [(5L,)]]
>>> a = [[x[0][0]] for x in a]
>>> a
[[1L], [2L], [3L], [4L], [5L]]
danben