SZanlongo
9/18/2014 - 2:01 AM

Transpose iterable

Transpose iterable

# https://stackoverflow.com/questions/691946/short-and-useful-python-snippets
a = [[1, 2, 3], [4, 5, 6]]
print zip(*a)

# Same with dicts
d = {"a":1, "b":2, "c":3}
print zip(*d.iteritems())