1# Basic syntax:
2list(zip(*[[list], [of], [lists]]))
3# Where zip is used to join iterable items together by corresponding
4# iterated elements
5
6# Example usage 1:
7list_of_lists = [[1,2], [3,4], [5,6]]
8list(zip(*list_of_lists))
9--> [(1, 3, 5), (2, 4, 6)]
10
11# Example usage 2:
12list_of_lists = [[1,2], ['a',4], [5,6,7]]
13list(zip(*list_of_lists))
14--> [(1, 'a', 5), (2, 4, 6)] # Note that the extra element in [5, 6, 7]
15# was ignored.