print dict(zip(('x', 'y'), (1, 2))) print dict([['x', 1], ['y', 2]]) print dict([('xy'[i-1], i) for i in range(1,3)]) print dict(x=1, y=2) dict1 = dict(x=1, y=2) print dict1 dict2 = dict(**dict1) print dict2