Convert list of tuples to list?

Using simple list comprehension:

e = [(1,), (2,), (3,)]
[i[0] for i in e]

will give you:

[1, 2, 3]

Leave a Comment