u = {"a":"aaa", "b":"bbb", "c":"ccc"} print len(u) for i in xrange(len(u)): key = u.keys()[i] print key print u[key]