morestuff = {"something":1, "somethingelse":2, "someone":3} for stuff in morestuff: print "adding %d %s to the mix" % (morestuff[stuff], stuff]