News for hackers. Stuff that matters.
Re:Key differences between Python 2.7.x and Python 3.x (2014) by kortex on Monday May 08, 2017 @12:07AM (#14289177)
In [1]: breakfast = {"bacon": 2, "eggs": 3}

In [2]: sorted(breakfast)

Out[2]: ['bacon', 'eggs']

Done. One and only one obvious way to return a sorted list of keys of a dict.

There are no comments on this comment yet.