I have a tuple like this
rows = ((1L, 100000L, 'logo', '0'), (2L, 100000L, 'menu', '0'))
And I want to turn it into this
[[1L, 100000L, 'logo', '0'], [2L, 100000L, 'menu', '0']]
Here is what I am trying
for idx, val in enumerate(rows):
print list(rows[idx])
And
for idx, val in enumerate(rows):
print list(val)
but neither prints out anything and there is no error. It just doesn't do anything. I know the variable rows has this value because I print it out before I go thought the loop.
How can I turn the tuple in to an array of arrays?