Rectangle 27 0

map in python, that map multiple objects to each object in list?


>>> import itertools
>>> l = [[1,2],[3,4]]
>>> list(itertools.chain(*l))
[1, 2, 3, 4]
Note