An interesting technique I learned today, unzip
the list of tuple into multiple lists, from stack overflow.
def multiple_list(a):
return a, str(a), a+1
unpack = lambda x: list(map(list, zip(*list(x))))
test_list = [1, 2, 3]
l1, l2, l3 = unpack(map(multiple_list, test_list))
l1
, l2
, l3
are [1,2,3]
, ['1','2','3']
and [2,3,4]
respectively.