Python: Lits containg tuples and long int.
Posted
by Yasmin
on Stack Overflow
See other posts from Stack Overflow
or by Yasmin
Published on 2010-03-12T11:37:47Z
Indexed on
2010/03/12
11:47 UTC
Read the original article
Hit count: 205
I have a list containing a tuples and long integers the list looks like this:
table = [(1L,), (1L,), (1L,), (2L,), (2L,), (2L,), (3L,), (3L,)]
How do i convert the table to look like a formal list?
so the output would be:
table = ['1','1','1','2','2','2','3','3']
For information purposes the data was obtained from a mysql database.
© Stack Overflow or respective owner