python print strings sorted by string length Get link Facebook X Pinterest Email Other Apps By JJ - November 21, 2017 for k in sorted(def_values, key=len, reverse=True): print k, def_values[k] Read more