1flat_list = [item for sublist in l for item in sublist]
2
3#which is equivalent to this
4flat_list = []
5for sublist in l:
6 for item in sublist:
7 flat_list.append(item)
1flat_list = []
2for sublist in l:
3 for item in sublist:
4 flat_list.append(item)