It's no big deal. Dictionaries work by hashing which means the elements come out in essentially random order. If you want them in a specific order, sort them: a = board.keys() a.sort() for k in a: print k + " \t", board[k]