John Smith wrote: > Hi, what's the fastest way (least amount of typing) Never good criteria >but I would like to do: >#error here >for k in d.keys().sort(): > print k, d[k] > >why doesn't the nested function call work? Thanks in advance. > sort() sorts in place and returns None