fork download
  1. dic={'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7}
  2. print [[str(key), dic[str(key)]]for key in sorted(map(int,dic.iterkeys()))[-5:] ]
Success #stdin #stdout 0.08s 10864KB
stdin
Standard input is empty
stdout
[['3', 3], ['4', 4], ['5', 5], ['6', 6], ['7', 7]]