How do I convert
[(1,), (2,), (3,)]
to
[1, 2, 3]
You can also unpack the tuple in the list comprehension:
e = [(1,), (2,), (3,)] [i for (i,) in e]
will still give: