How to turn a list containing tuples into a list

[(a,), (b,) (c,).] How to divide it into [a _ r _ b _ c.]

Oct.16,2021

a = [(1, 2,), (2, 3,), (4, 5)]
s = [j for i in a for j in i]
print s
------
[1, 2, 2, 3, 4, 5]

the writing upstairs is too refined and high. I'll make it easy to understand, but it's a little verbose.

a = [(1, 2,), (2, 3,), (4, 5)]
s = reduce(lambda x,y:list(x)+list(y), a)
print(s)
Menu