>>> zip([1,2,3], ['a','b','c']) [(1, 'a'), (2, 'b'), (3, 'c')] >>> a = ['a','b','c'] >>> b = range(3) >>> b [0, 1, 2] >>> d = {key: value for (key, value) in zip(a,b) } >>> d {'a': 0, 'c': 2, 'b': 1}