dic = {1: 'one', 2: 'two'} for k, v in dic.iteritems(): print k, v #you can order the dic in the order of the insertion using ordereddict module. d = ordereddict(dic, relax=True)