You can combine the values ββin the list with the .extend()
function as follows:
l = [(1,2,3), (4,5,6)] m = [] for t in l: m.extend(t)
or shorter version using the abbreviation:
l = [(1,2,3), (4,5,6)] m = reduce(lambda x,y: x+list(y), l, [])
rslnx source share